Skip to content

Commit f:size holds a different value in novelty than in the index #1998

Open

Description

@bplatz

Commit metadata f:size (https://ns.flur.ee/db#size) has two producers that write different values for the same commit:

  • Novelty (fluree-db-novelty/src/commit_flakes.rs, generating commit flakes from the envelope on load): the sum of Flake::size_bytes() over the commit's flakes.
  • Indexer (fluree-db-indexer/src/run_index/resolve/resolver.rs): the commit blob's size in bytes.

Both type it xsd:long, so a typed or bare lookup matches either way; only the value changes. A query on a commit's f:size answers one way while the commit is in novelty and another once it is indexed. docs/reference/vocabulary.md describes it as "Cumulative data size in bytes", which is neither.

Needs a decision on which value is canonical (and whether it's per-commit or cumulative), then one producer and the doc brought in line.

Surfaced in #1990.

Activity

  1. added
    P3
    triage:needs-decision
    area:storage
    on Sep 30, 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:storagetriage:needs-decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions