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
Commit f:size holds a different value in novelty than in the index #1998
P3Backlog: valid, low payoff-per-effortarea:storageStorage backends, nameservice, ledger lifecycle, index storage, cachestriage:needs-decisionBlocked on a product/design decision
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.
P3Backlog: valid, low payoff-per-effortarea:storageStorage backends, nameservice, ledger lifecycle, index storage, cachestriage:needs-decisionBlocked on a product/design decision
Activity