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
/info on a graph source reports table rows as flakes #2322
For a virtual (graph-source) ledger, /info reports ledger.flakes, each named graph's flakes, and stats.flakes as the sum of the source tables' row counts (fluree-db-api/src/ledger_info.rs, the virtual stats builder). A flake is a triple, and one row of a mapped table usually yields several triples (one per predicate-object map, plus rdf:type), so the figure undercounts. A client comparing a graph source with a native ledger loaded from the same mapping sees a different number for the same data.
#2317 made class and property counts exact or null. The flake totals still use rows.
Expected
flakes for a virtual source is the number of triples the mapping defines when that is provable from table metadata, using the same rules as an exact property count, summed over properties and classes. Otherwise it is null, with an upper bound where one is provable.
Or, if a row count is the useful figure, the field says so under its own name (for example source.table-row-counts, which already exists) and flakes is null for virtual sources.
Notes
The existing goldens (GOLDEN_VIRTUAL_FULL) pin flakes to the row sum and change with this.
Activity