Skip to content

/info on a graph source reports table rows as flakes #2322

Open

Description

@aaj3f

Problem

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.

Follow-up from #2317.

Activity

  1. added
    bug
    P3
    area:server
    on Nov 11, 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:serverbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions