8000 perf: committed scans look up every entity id in the DICT tree · Issue #530 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

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 #3 8000 94 performance envelope (examples/perf_envelope.rs, results in docs/BENCHMARKS.md on v3).

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

    performanceBenchmark performance regressions

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0