Skip to content

BE-592: HashQL: Remove old eval graph path and core value types#8841

Merged
indietyp merged 6 commits into
mainfrom
bm/be-592-hashql-remove-old-eval-graph-path-and-core-value-types
Jul 6, 2026
Merged

BE-592: HashQL: Remove old eval graph path and core value types#8841
indietyp merged 6 commits into
mainfrom
bm/be-592-hashql-remove-old-eval-graph-path-and-core-value-types

Conversation

@indietyp

@indietyp indietyp commented Jun 8, 2026

Copy link
Copy Markdown
Member

🌟 What is the purpose of this PR?

Remove the old eval::graph module (read path, filter expressions, convert, sink) and its compiletest suite (eval_graph_read_entity). Add the new mir_interpret compiletest suite. Delete the now-unused composite value types from hashql-core (Dict, List, Struct, Tuple, Opaque, Value, FieldAccessError), keeping only primitive re-exports.

Pre-Merge Checklist 🚀

🚢 Has this modified a publishable library?

This PR:

  • does not modify any publishable blocks or libraries, or modifications do not need publishing

📜 Does this require a change to the docs?

The changes in this PR:

  • are internal and do not require a docs change

🕸️ Does this require a change to the Turbo Graph?

The changes in this PR:

  • do not affect the execution graph

indietyp added 2 commits June 8, 2026 12:40
chore: add new dependency

chore: format

feat: error module

feat: introduce hashql_eval interner

chore: checkpoint

feat: checkpoint

feat: checkpoint

chore: remove old value module

feat: checkpoint

feat: checkpoint

feat: checkpoint

feat: checkpoint

feat: checkpoint

chore: checkpoint

feat: move entity query into its own modul

fix: query request

feat: checkpoint (it compiles!)

feat: checkpoint

feat: checkpoint

feat: checkpoint

fix: issue around cached thunking

feat: covariance for opaque inners

fix: cfgattr serde

chore: remove graph module

fix: merge fuckup
@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hash Ready Ready Preview, Comment Jul 6, 2026 8:03am
hashdotdesign-tokens Ready Ready Preview, Comment Jul 6, 2026 8:03am
petrinaut Ready Ready Preview, Comment Jul 6, 2026 8:03am

@cursor

cursor Bot commented Jun 8, 2026

Copy link
Copy Markdown

PR Summary

High Risk
Large deletion of graph entity filter compilation and public-ish core value types; any remaining callers of those APIs would break, though the diff targets an obsolete path superseded by MIR/postgres eval.

Overview
Removes the legacy graph read evaluation path from hashql-eval: the graph module (HIR visitor → entity filters, path traversal, value-to-parameter conversion) and the eval/graph/read/entity compiletest suite plus its UI fixtures. hashql-eval no longer exposes a graph feature; hash-graph-store / type-system move to dev-dependencies for remaining Postgres/orchestrator tests.

hashql-core::value is trimmed to primitive types only (Float, Integer, Primitive, String); composite runtime values (Value, Dict, List, Struct, Tuple, Opaque) and field/index access helpers are deleted as unused after dropping the graph compiler.

hashql-compiletest drops the optional graph feature on hashql-eval. Workspace deps add futures-lite and sqruff-lib at the root; minor #[inline] on AST lowering Default impls.

Reviewed by Cursor Bugbot for commit cc8cc79. Bugbot is set up for automated code reviews on this repo. Configure here.

indietyp commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the legacy HashQL graph-read evaluation/compiler path (and its UI/compiletest suite) while simplifying hashql-core’s value surface area down to primitive re-exports. This aligns evaluation/testing around the newer MIR interpreter path and eliminates now-dead value/container types.

Changes:

  • Removed hashql-eval’s old graph module (graph read path/filter compiler/sink/convert/error) and the associated eval/graph/read/entity UI tests.
  • Removed composite value types from hashql-core’s value module, keeping only primitive re-exports.
  • Updated compiletest suite registration/dependencies and workspace dependency versions to reflect the removed graph feature path.

Reviewed changes

Copilot reviewed 102 out of 102 changed files in this pull request and generated no comments.

Show a summary per file
File Description
libs/@local/hashql/hir/src/map.rs Adds #[inline] to Default impl.
libs/@local/hashql/hir/src/lower/normalization.rs Adds #[inline] to Default impl.
libs/@local/hashql/hir/src/context.rs Adds #[inline] to Default impls.
libs/@local/hashql/eval/tests/ui/graph/read/entity/.spec.toml Removes old eval graph-read entity suite spec.
libs/@local/hashql/eval/tests/ui/graph/read/entity/arithmetic-comparisons-and.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/arithmetic-comparisons-and.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/arithmetic-comparisons-or.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/arithmetic-comparisons-or.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/boolean-literal.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/boolean-literal.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/call-identity.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/call-identity.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/complex-object-error.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/complex-object-error.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/computed-path-indexing-error.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/computed-path-indexing-error.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/constructor-call-none.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/constructor-call-none.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/equality-comparison.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/equality-comparison.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-access-struct.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-access-struct.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-access-tuple.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-access-tuple.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-dict-key.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-dict-key.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-dict-value.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-dict-value.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-list.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-list.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-struct-entry.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-struct-entry.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-struct.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-struct.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-tuple.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/field-in-tuple.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/if-filter-expr.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/if-filter-expr.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/if-filter.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/if-filter.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/input-field-access.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/input-field-access.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/input-index-access.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/input-index-access.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/input-parameter.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/input-parameter.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/invalid-field-access-error.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/invalid-field-access-error.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/invalid-index-access-error.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/invalid-index-access-error.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/invalid-vertex-query.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/invalid-vertex-query.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/let-expression.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/let-expression.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/let-propagation.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/let-propagation.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/logical-and-or.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/logical-and-or.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/logical-or-and.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/logical-or-and.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/nested-binary-operation.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/nested-binary-operation.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/nested-let-bindings.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/nested-let-bindings.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/scalar-property-filter.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/scalar-property-filter.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/top-level-variable.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/top-level-variable.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/top-type-assertion.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/top-type-assertion.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/type-assertion-in-comparison.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/type-assertion-in-comparison.stdout Removes old UI test output snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/unsupported-closure.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/unsupported-closure.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/unsupported-nested-graph-read.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/unsupported-nested-graph-read.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/tests/ui/graph/read/entity/unsupported-type-constructor.jsonc Removes old UI test input for graph-read filter compilation.
libs/@local/hashql/eval/tests/ui/graph/read/entity/unsupported-type-constructor.stderr Removes old UI test error snapshot.
libs/@local/hashql/eval/src/lib.rs Removes graph module export and an unneeded feature gate.
libs/@local/hashql/eval/src/graph/mod.rs Removes legacy graph module root.
libs/@local/hashql/eval/src/graph/error.rs Removes legacy graph diagnostic category wrapper.
libs/@local/hashql/eval/src/graph/read/mod.rs Removes legacy graph-read compiler entrypoint/types.
libs/@local/hashql/eval/src/graph/read/convert.rs Removes legacy value→parameter conversion logic.
libs/@local/hashql/eval/src/graph/read/error.rs Removes legacy graph-read compiler diagnostics definitions.
libs/@local/hashql/eval/src/graph/read/filter.rs Removes legacy filter compilation logic.
libs/@local/hashql/eval/src/graph/read/filter_expr.rs Removes legacy filter-expression lowering logic.
libs/@local/hashql/eval/src/graph/read/path.rs Removes legacy query-path traversal/conversion logic.
libs/@local/hashql/eval/src/graph/read/sink.rs Removes legacy filter sink builder.
libs/@local/hashql/eval/Cargo.toml Drops the old graph feature wiring and updates deps to workspace-managed versions.
libs/@local/hashql/core/src/value/mod.rs Removes composite Value hierarchy exports, keeping only primitives.
libs/@local/hashql/core/src/value/dict.rs Removes legacy persistent dict value type.
libs/@local/hashql/core/src/value/list.rs Removes legacy persistent list value type.
libs/@local/hashql/core/src/value/opaque.rs Removes legacy opaque/nominal value type.
libs/@local/hashql/core/src/value/struct.rs Removes legacy struct value type and access logic.
libs/@local/hashql/core/src/value/tuple.rs Removes legacy tuple value type and access logic.
libs/@local/hashql/compiletest/src/suite/mod.rs Removes old eval graph-read suite registration.
libs/@local/hashql/compiletest/src/suite/eval_graph_read_entity.rs Removes the compiletest suite that exercised legacy graph-read compilation.
libs/@local/hashql/compiletest/Cargo.toml Removes hashql-eval graph feature usage.
libs/@local/hashql/ast/src/lowering/sanitizer.rs Adds #[inline] to Default impl.
libs/@local/hashql/ast/src/lowering/node_renumberer.rs Adds #[inline] to Default impl.
libs/@local/graph/api/Cargo.toml Drops hashql-eval graph feature enablement.
Cargo.toml Adds workspace dependency versions for futures-lite, sqruff-lib, and sqruff-lib-core.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.64%. Comparing base (007dd9f) to head (cc8cc79).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8841      +/-   ##
==========================================
- Coverage   59.73%   59.64%   -0.10%     
==========================================
  Files        1368     1354      -14     
  Lines      132944   131373    -1571     
  Branches     6057     6021      -36     
==========================================
- Hits        79419    78356    -1063     
+ Misses      52581    52089     -492     
+ Partials      944      928      -16     
Flag Coverage Δ
apps.hash-ai-worker-ts 1.39% <ø> (ø)
apps.hash-api 6.39% <ø> (ø)
blockprotocol.type-system 40.84% <ø> (ø)
local.claude-hooks 0.00% <ø> (ø)
local.harpc-client 51.49% <ø> (ø)
local.hash-backend-utils 2.81% <ø> (ø)
local.hash-graph-sdk 10.00% <ø> (ø)
local.hash-isomorphic-utils 0.18% <ø> (ø)
rust.antsi 0.00% <ø> (ø)
rust.error-stack 90.89% <ø> (ø)
rust.harpc-codec 84.70% <ø> (ø)
rust.harpc-net 96.38% <ø> (+0.14%) ⬆️
rust.harpc-tower 67.03% <ø> (ø)
rust.harpc-types 0.00% <ø> (ø)
rust.harpc-wire-protocol 92.23% <ø> (ø)
rust.hash-codec 72.76% <ø> (ø)
rust.hash-graph-api 8.23% <ø> (ø)
rust.hash-graph-authorization 62.59% <ø> (ø)
rust.hash-graph-postgres-store 29.38% <ø> (ø)
rust.hash-graph-store 38.21% <ø> (ø)
rust.hash-graph-temporal-versioning 47.95% <ø> (ø)
rust.hash-graph-types 0.00% <ø> (ø)
rust.hash-graph-validation 83.43% <ø> (ø)
rust.hashql-ast 87.23% <ø> (ø)
rust.hashql-compiletest 28.40% <ø> (ø)
rust.hashql-core 79.41% <ø> (-0.17%) ⬇️
rust.hashql-diagnostics 72.31% <ø> (ø)
rust.hashql-eval 79.47% <ø> (+4.50%) ⬆️
rust.hashql-hir 89.06% <ø> (ø)
rust.hashql-mir 88.04% <ø> (ø)
rust.hashql-syntax-jexpr 94.04% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq

codspeed-hq Bot commented Jun 8, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 80 untouched benchmarks


Comparing bm/be-592-hashql-remove-old-eval-graph-path-and-core-value-types (cc8cc79) with main (007dd9f)

Open in CodSpeed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 103 out of 103 changed files in this pull request and generated 1 comment.

Comment thread libs/@local/hashql/eval/Cargo.toml
@indietyp indietyp force-pushed the bm/be-590-hgraph-entity-query-request-refactor branch from 36c00cc to 8a4c804 Compare June 16, 2026 09:00
@indietyp indietyp force-pushed the bm/be-592-hashql-remove-old-eval-graph-path-and-core-value-types branch from d15129c to d357c57 Compare June 16, 2026 09:00
Comment thread libs/@local/hashql/eval/Cargo.toml
Copilot AI review requested due to automatic review settings June 16, 2026 09:08
@github-actions github-actions Bot added the area/deps Relates to third-party dependencies (area) label Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Human review recommended

It performs broad removals across multiple crates (including public-facing type/module deletions) that require full CI validation to ensure no downstream breakage.

Copilot's findings
  • Files reviewed: 103/104 changed files
  • Comments generated: 0 new

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

@vercel vercel Bot temporarily deployed to Preview – petrinaut June 16, 2026 09:29 Inactive
Copilot AI review requested due to automatic review settings June 19, 2026 08:15
@indietyp indietyp force-pushed the bm/be-592-hashql-remove-old-eval-graph-path-and-core-value-types branch from 887782c to c6d3684 Compare June 19, 2026 08:15
@indietyp indietyp force-pushed the bm/be-590-hgraph-entity-query-request-refactor branch from 8a4c804 to 877c368 Compare June 19, 2026 08:15
Comment thread libs/@local/hashql/core/src/value/mod.rs
Comment thread libs/@local/hashql/core/src/value/mod.rs

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 98ab2be. Configure here.

Comment thread libs/@local/graph/api/Cargo.toml Outdated
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Benchmark results

@rust/hash-graph-benches – Integrations

policy_resolution_large

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2002 $$28.2 \mathrm{ms} \pm 195 \mathrm{μs}\left({\color{gray}-2.245 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.48 \mathrm{ms} \pm 22.9 \mathrm{μs}\left({\color{gray}-2.542 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1002 $$13.8 \mathrm{ms} \pm 108 \mathrm{μs}\left({\color{gray}-0.120 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$44.4 \mathrm{ms} \pm 419 \mathrm{μs}\left({\color{gray}0.104 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$15.1 \mathrm{ms} \pm 121 \mathrm{μs}\left({\color{gray}-1.848 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1527 $$25.1 \mathrm{ms} \pm 207 \mathrm{μs}\left({\color{gray}-2.414 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$29.7 \mathrm{ms} \pm 217 \mathrm{μs}\left({\color{gray}-1.341 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.90 \mathrm{ms} \pm 19.8 \mathrm{μs}\left({\color{gray}0.206 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$14.9 \mathrm{ms} \pm 87.6 \mathrm{μs}\left({\color{gray}0.366 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$3.85 \mathrm{ms} \pm 31.9 \mathrm{μs}\left({\color{gray}-0.028 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.03 \mathrm{ms} \pm 16.2 \mathrm{μs}\left({\color{gray}0.350 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 52 $$3.37 \mathrm{ms} \pm 18.6 \mathrm{μs}\left({\color{gray}-1.196 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$5.28 \mathrm{ms} \pm 44.6 \mathrm{μs}\left({\color{gray}-0.402 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.59 \mathrm{ms} \pm 26.2 \mathrm{μs}\left({\color{gray}-0.143 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 108 $$4.21 \mathrm{ms} \pm 27.3 \mathrm{μs}\left({\color{gray}-0.704 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$4.51 \mathrm{ms} \pm 30.7 \mathrm{μs}\left({\color{gray}0.542 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.49 \mathrm{ms} \pm 16.1 \mathrm{μs}\left({\color{gray}-1.100 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$4.21 \mathrm{ms} \pm 49.8 \mathrm{μs}\left({\color{gray}1.62 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.69 \mathrm{ms} \pm 18.8 \mathrm{μs}\left({\color{gray}1.04 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.54 \mathrm{ms} \pm 14.0 \mathrm{μs}\left({\color{gray}-1.306 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 2 $$2.66 \mathrm{ms} \pm 13.0 \mathrm{μs}\left({\color{gray}0.585 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$2.97 \mathrm{ms} \pm 24.4 \mathrm{μs}\left({\color{gray}1.62 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.75 \mathrm{ms} \pm 18.5 \mathrm{μs}\left({\color{gray}1.36 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$2.94 \mathrm{ms} \pm 16.6 \mathrm{μs}\left({\color{gray}1.19 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$3.04 \mathrm{ms} \pm 17.3 \mathrm{μs}\left({\color{gray}-2.038 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.77 \mathrm{ms} \pm 17.2 \mathrm{μs}\left({\color{gray}-1.456 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 26 $$3.01 \mathrm{ms} \pm 18.2 \mathrm{μs}\left({\color{gray}-1.536 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.51 \mathrm{ms} \pm 30.7 \mathrm{μs}\left({\color{gray}-1.676 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.99 \mathrm{ms} \pm 16.6 \mathrm{μs}\left({\color{gray}-3.492 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 27 $$3.36 \mathrm{ms} \pm 22.9 \mathrm{μs}\left({\color{gray}1.31 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$3.41 \mathrm{ms} \pm 28.8 \mathrm{μs}\left({\color{gray}-1.752 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.99 \mathrm{ms} \pm 21.9 \mathrm{μs}\left({\color{gray}-1.501 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$3.46 \mathrm{ms} \pm 29.7 \mathrm{μs}\left({\color{gray}2.89 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$42.3 \mathrm{ms} \pm 257 \mathrm{μs}\left({\color{gray}-3.681 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$32.7 \mathrm{ms} \pm 165 \mathrm{μs}\left({\color{lightgreen}-6.045 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$35.5 \mathrm{ms} \pm 208 \mathrm{μs}\left({\color{lightgreen}-7.432 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$40.5 \mathrm{ms} \pm 1.39 \mathrm{ms}\left({\color{lightgreen}-13.955 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$43.0 \mathrm{ms} \pm 279 \mathrm{μs}\left({\color{gray}-4.232 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$49.8 \mathrm{ms} \pm 322 \mathrm{μs}\left({\color{gray}-4.198 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$40.5 \mathrm{ms} \pm 245 \mathrm{μs}\left({\color{gray}-2.688 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$93.3 \mathrm{ms} \pm 537 \mathrm{μs}\left({\color{gray}3.44 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$36.5 \mathrm{ms} \pm 1.94 \mathrm{ms}\left({\color{gray}3.70 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$283 \mathrm{ms} \pm 997 \mathrm{μs}\left({\color{gray}-1.139 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$11.1 \mathrm{ms} \pm 88.5 \mathrm{μs}\left({\color{gray}2.45 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$11.0 \mathrm{ms} \pm 63.8 \mathrm{μs}\left({\color{gray}-0.454 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$11.1 \mathrm{ms} \pm 67.9 \mathrm{μs}\left({\color{gray}2.72 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$10.8 \mathrm{ms} \pm 68.4 \mathrm{μs}\left({\color{gray}2.77 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$10.9 \mathrm{ms} \pm 70.5 \mathrm{μs}\left({\color{gray}3.70 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$10.8 \mathrm{ms} \pm 79.6 \mathrm{μs}\left({\color{gray}0.599 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$10.8 \mathrm{ms} \pm 91.8 \mathrm{μs}\left({\color{gray}-1.165 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$10.7 \mathrm{ms} \pm 76.8 \mathrm{μs}\left({\color{gray}-0.821 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$10.9 \mathrm{ms} \pm 82.0 \mathrm{μs}\left({\color{gray}-1.853 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$11.0 \mathrm{ms} \pm 77.3 \mathrm{μs}\left({\color{gray}0.891 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity

Function Value Mean Flame graphs
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$11.2 \mathrm{ms} \pm 88.1 \mathrm{μs}\left({\color{gray}1.48 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$11.2 \mathrm{ms} \pm 60.3 \mathrm{μs}\left({\color{gray}1.48 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$11.0 \mathrm{ms} \pm 66.7 \mathrm{μs}\left({\color{gray}-1.541 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$11.3 \mathrm{ms} \pm 69.4 \mathrm{μs}\left({\color{gray}0.785 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$11.1 \mathrm{ms} \pm 78.0 \mathrm{μs}\left({\color{gray}-0.217 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$11.2 \mathrm{ms} \pm 80.8 \mathrm{μs}\left({\color{gray}0.555 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$11.1 \mathrm{ms} \pm 72.6 \mathrm{μs}\left({\color{gray}-1.619 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$11.2 \mathrm{ms} \pm 65.7 \mathrm{μs}\left({\color{gray}1.38 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$11.5 \mathrm{ms} \pm 77.8 \mathrm{μs}\left({\color{gray}3.20 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: bf5a9ef5-dc3b-43cf-a291-6210c0321eba $$8.77 \mathrm{ms} \pm 54.5 \mathrm{μs}\left({\color{gray}-0.344 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$58.7 \mathrm{ms} \pm 413 \mathrm{μs}\left({\color{lightgreen}-9.977 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$111 \mathrm{ms} \pm 644 \mathrm{μs}\left({\color{lightgreen}-5.468 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$63.1 \mathrm{ms} \pm 457 \mathrm{μs}\left({\color{lightgreen}-10.909 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$73.3 \mathrm{ms} \pm 482 \mathrm{μs}\left({\color{lightgreen}-6.709 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$81.7 \mathrm{ms} \pm 480 \mathrm{μs}\left({\color{lightgreen}-7.149 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$90.0 \mathrm{ms} \pm 555 \mathrm{μs}\left({\color{lightgreen}-5.827 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$45.3 \mathrm{ms} \pm 253 \mathrm{μs}\left({\color{gray}-4.621 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$75.4 \mathrm{ms} \pm 474 \mathrm{μs}\left({\color{gray}-1.331 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$51.7 \mathrm{ms} \pm 324 \mathrm{μs}\left({\color{gray}-4.800 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$61.7 \mathrm{ms} \pm 472 \mathrm{μs}\left({\color{gray}-3.783 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$64.3 \mathrm{ms} \pm 486 \mathrm{μs}\left({\color{gray}-2.871 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$63.8 \mathrm{ms} \pm 469 \mathrm{μs}\left({\color{gray}-2.599 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$126 \mathrm{ms} \pm 601 \mathrm{μs}\left({\color{gray}2.80 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$138 \mathrm{ms} \pm 797 \mathrm{μs}\left({\color{gray}3.21 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$18.9 \mathrm{ms} \pm 140 \mathrm{μs}\left({\color{lightgreen}-25.414 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$530 \mathrm{ms} \pm 1.36 \mathrm{ms}\left({\color{gray}-1.845 \mathrm{\%}}\right) $$ Flame Graph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/deps Relates to third-party dependencies (area) area/libs Relates to first-party libraries/crates/packages (area) area/tests New or updated tests type/eng > backend Owned by the @backend team

Development

Successfully merging this pull request may close these issues.

3 participants