Skip to content

perf: committed scans look up every entity id in the DICT tree #530

Closed

Description

@adityamukho

live_scan → fact() → uuid_of does a DICT B+tree get per row to turn an internal entity id back into a UUID. At 1M facts it is about 35% of the attribute scan [:find ?e ?a :where [?e :age ?a]] (perf, bench profile, frame pointers). Most rows in a scan repeat a few ids (refs) or come in id order (entities).

Direction: a small id→UUID cache per scan, or resolve ids in sorted batches with one leaf walk; longer term, keep internal ids in the executor and translate only the projected columns (#473).

Found by the #394 performance envelope (examples/perf_envelope.rs, results in docs/BENCHMARKS.md on v3).

Activity

  1. added this to the v3.1.0 milestone on Oct 11, 2026
  2. added
    performance
    on Oct 11, 2026
  3. modified the milestones: v3.next, v3.0.0 on Oct 26, 2026
  4. added a commit that references this issue on Oct 27, 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

    performance

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions