Repository navigation
Description
Summary
Under the default MostGranular split, BSBM 100M produces 5.7M distinct namespace prefixes. The 16-bit namespace table fills early in the import. After that, new prefixes go to the overflow namespace (0xFFFE), whose subjects carry their full IRI as the name:
- 95.6% of imported subjects end up there.
- So do 92% of the subjects created by later updates.
We have not measured what this costs. Lookup, indexing and query cost should be measured across the boundary before deciding whether to widen namespace ids or to improve overflow handling. Widening graph ids, which feat/pooled-named-graphs does, is a separate change and does not settle this question.
Observed (BSBM 100M, 26 GB N-Triples)
Distinct prefixes in the data: 5,709,283.
- 5,691,957 are offer webpage IRIs (
…/instances/dataFromVendorN/OfferN/, the value ofbsbm:offerWebpage). Each ends in/, so the split makes the whole IRI the prefix with an empty local name: one namespace per offer. These IRIs only ever appear as objects. - The rest:
- 8,514 host roots, such as
http://www.ProducerN.com/. - 5,618 producer prefixes.
- 2,896 vendor prefixes.
- 289 rating-site prefixes.
- 8,514 host roots, such as
Namespace table after import (every import): 65,534 codes, the highest 65,533. Of the 65,521 user codes:
- about 54,200–54,300 went to offer webpage prefixes;
- about 5,600 to producers;
- about 5,500–5,600 to producer homepages;
- 26–28 to vendors;
- none to rating sites.
Subjects in OVERFLOW: 8.63M of 9.03M distinct subjects (95.6%). That covers every review and reviewer, and the offers of more than 2,860 vendors.
Updates: each 100-commit incremental build of the BSBM update stream adds 1,328 subjects. Of these, 1,223 (92%) land in namespace 65534, which has 80 forward packs.
Query cost (no baseline yet): with pending writes, explore Q10 spends about 80% of its time in novelty translation, mostly reverse dictionary lookups. Overflow subjects carry their full IRI, so overflow may be where the cost shows. This has not been measured against data that stays under the limit.
Proposed measurement
Run the same data below and above the boundary:
- Controls: the same data imported with a coarser split mode that does not saturate the table, or synthetic data whose prefix count spans about 65K.
- Costs to measure:
- IRI → Sid and Sid → IRI lookups, for persisted data and for novelty.
- Dictionary sizes.
- Import time.
- Incremental build time, broken down into dictionary updates and forward packs.
- Query time, with and without pending writes.
Then choose between the options:
- wider namespace ids;
- better overflow handling, for example a partitioned overflow namespace;
- a split rule for IRIs ending in a delimiter;
- frequency-ordered allocation at import.
Related
- Bulk import assigns namespace codes nondeterministically; once the table fills this changes overflow placement and query time #2134: nondeterministic namespace allocation at import.
- BSBM Update throughput on feat/pooled-named-graphs: original ~10% gap not reproduced under controlled inputs; small workload effect unresolved #2136: the BSBM Update regression, where overflow placement is a possible confounder.
- Bound-IRI lookups miss overflow-namespace subjects in novelty #1842, DictNovelty overflow special case keyed on 0xFFFF never fires #1843,
build_reverse_graphkeys graph Sids withencode_iri, which cannot produce the OVERFLOW form the write path stores #1891: correctness bugs in overflow handling.
Activity
bplatz commentedon Nov 20, 2026
#2422 (merged into
next2026-11-19) splits new ledgers underNamedLocal: an IRI ending in a delimiter goes under the namespace before it. On BSBM 100M that removes the ~54,200 namespaces taken by offer-webpage IRIs, one each. Without them the dataset has about 17,300 prefixes, which fit in the table.Remaining:
NamedLocalagainstMostGranular;bplatz commentedon Nov 23, 2026
BSBM 100M fits in the namespace table under
NamedLocal(#2422), across many runs since it merged.We're not widening namespace ids. No workload we know of still fills the table. Overflow remains the fallback for the shapes
NamedLocaldoesn't cover: IRIs whose last segment is unique (urn:…:rev:<hash>), data with many distinct hosts, and write-heavy ledgers, which get no import preflight.