You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IndexerConfig: remove the unused byte/branch sizing fields and the small/large/new presets #2107
IndexerConfig carries four fields the indexer never reads, left over from the previous index format:
leaf_target_bytes, leaf_max_bytes
branch_target_children, branch_max_children
They are set only by the constructors and by tests. IndexerConfig::new() (which takes exactly these four) and IndexerConfig::large() have no callers.
Once #2051 lands, IndexerConfig::small() differs from default() only in these dead fields: leaf size no longer derives from leaflet size, so small() builds the same geometry as default(). Its name suggests otherwise, and 332 call sites use it.
Proposal
Delete the four fields, new(), large() and small().
Switch the small() call sites to default(). This is mechanical, because the layouts they build don't change.
Related: test settings that do nothing
fluree-db-api/tests/it_query_sparql_indexed.rs sets leaf_target_bytes / leaf_max_bytes at several sites, under the comment "tiny leaves/leaflets so the data spans many boundaries". Those settings have never had an effect. The small leaves came from leaflet_rows (and, after #2051, an explicit leaf_rows). Deleting the fields removes the misleading lines along with them.
Split out of #2051, which makes leaf size a single leaf_rows setting.
Activity