pub const EDGES: usize = 90;Expand description
Edge assertions (bulk_import).
Per-row cost on this path rises with the size of links_current, not
with the chunk (D-059) — so cutting the chunk buys latency and costs
throughput, ~11% for 1,000 edges. An earlier version of this comment
claimed it was 3.3× faster; that came from multiplying eleven copies of
a chunk measured into an empty database.
This size does not meet the 3 ms bound on a large database. 90 edges
into an 8,000-edge hub take 47.7 ms, because trg_links_single_open’s
EXISTS is served by idx_lc_traversal_cover with only source_id
bound and therefore scans the whole out-degree. That is a schema defect
with a proven fix, recorded in D-059 and not applied here.