Skip to content

IndexerConfig: remove the unused byte/branch sizing fields and the small/large/new presets #2107

Open

Description

@bplatz

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

  1. added
    P3
    area:storage
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area:storage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions