Skip to content

Index build reads the published root twice to check its format #2268

Open

Description

@bplatz

published_root_is_current (fluree-db-indexer/src/lib.rs) fetches the whole published index root to read its format version. The incremental build then fetches the same root again (incremental_index → resolve_incremental_commits_v6).

On a local store the second read is a cache hit. On a remote content store it is an extra GET of the root on every index cycle of every ledger, and a root with inline leaf keys is not small.

Fix. Pass the bytes already fetched into incremental_index. Or check the format where the incremental path first decodes the root, and return a "rebuild in full" outcome.

Follow-up from review of #2229.

Activity

  1. added
    P3
    area:storage
    performance
    on Nov 6, 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:storageperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions