Skip to content

BE-434: HashQL: Refactor entity storage path resolution with centralized schema mapping#8496

Open
indietyp wants to merge 19 commits intomainfrom
bm/be-434-hashql-entity-path-resolution-and-storage-mapping
Open

BE-434: HashQL: Refactor entity storage path resolution with centralized schema mapping#8496
indietyp wants to merge 19 commits intomainfrom
bm/be-434-hashql-entity-path-resolution-and-storage-mapping

Conversation

@indietyp
Copy link
Member

🌟 What is the purpose of this PR?

This PR refactors the entity field path resolution system in the HashQL MIR execution layer. It consolidates the scattered path lookup logic into a centralized storage module with a strongly-typed EntityPath enum, improving maintainability and type safety for backend placement decisions.

🔍 What does this change?

  • Adds base_url and version symbols to the core symbol definitions
  • Implements AsRef<Self> for Projection to improve ergonomics
  • Creates a new storage module with EntityPath enum that exhaustively represents all entity field paths
  • Replaces the trie-based path lookup system with direct pattern matching on projection sequences
  • Introduces VertexType enum to classify vertex types in GraphReadFilter bodies
  • Consolidates entity projection access logic into a single entity_projection_access function
  • Updates both Postgres and Embedding statement placement to use the new centralized path resolution
  • Removes the old lookup module and its trie-based implementation
  • Adds comprehensive test coverage for the new path resolution system

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

🛡 What tests cover this?

  • Existing unit tests for entity projection path lookup have been updated and expanded
  • New tests cover the EntityPath::resolve method and index tracking functionality
  • Tests verify JSONB path handling and composite path early exit behavior

❓ How to test this?

  1. Checkout the branch
  2. Run the existing test suite to ensure no regressions
  3. Verify that entity field access patterns continue to work correctly in both Postgres and Embedding backends

feat: checkpoint (II)

feat: checkpoint (III)

feat: snapshot vec

feat: add dedicated filter

feat: checkpoint

feat: filter implementation

feat: filter implementation (mostly) done

chore: environment capture note

chore: always postgres bigint

feat: target clone

feat: simplify lookup

feat: move storage up

feat: eval entity path

chore: checkpoint

chore: checkpoint

chore: find entrypoint

feat: eval context

feat: eval cleanup

chore: cleanup

feat: track index

feat: wire up filter

feat: add error reporting

chore: checkpoint
@cursor
Copy link

cursor bot commented Feb 28, 2026

PR Summary

Medium Risk
Refactors how entity field projections are mapped to Postgres vs embedding backends, which can change statement placement decisions and query execution behavior if any path mapping is wrong. Added unit tests reduce risk but the change touches core execution planning logic.

Overview
Centralizes entity field storage mapping for execution planning. The old trie-based statement_placement::lookup logic is removed and replaced with a new execution::storage module that resolves projection sequences into a strongly-typed EntityPath and derives backend Access (Postgres vs Embedding).

Statement placement for both Postgres and Embedding is updated to use the shared entity_projection_access helper, and vertex argument type detection is refactored into a new VertexType classifier used by GraphReadFilter placement.

Adds base_url and version symbols, implements AsRef for Projection, and introduces expanded tests for EntityPath::resolve (including consumed-index tracking and invalid/non-field projection edge cases).

Written by Cursor Bugbot for commit 8c045d7. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Feb 28, 2026

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

Project Deployment Actions Updated (UTC)
hash Ready Ready Preview, Comment Feb 28, 2026 5:10pm
petrinaut Ready Ready Preview Feb 28, 2026 5:10pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
hashdotdesign Ignored Ignored Preview Feb 28, 2026 5:10pm
hashdotdesign-tokens Ignored Ignored Preview Feb 28, 2026 5:10pm

@github-actions github-actions bot added area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team labels Feb 28, 2026
Copy link
Member Author

indietyp commented Feb 28, 2026

@augmentcode
Copy link

augmentcode bot commented Feb 28, 2026

🤖 Augment PR Summary

Summary: Refactors HashQL MIR execution placement by centralizing entity field storage path resolution.

Changes:

  • Adds new core symbols base_url and version
  • Adds an AsRef impl for Projection to improve call-site ergonomics
  • Introduces pass::execution::storage with a strongly-typed EntityPath enum and Access mapping
  • Replaces the prior trie-based lookup with direct pattern matching via EntityPath::resolve
  • Adds VertexType to classify GraphReadFilter vertex locals
  • Updates Postgres and Embedding statement placement to use the centralized resolution helper
  • Removes the old statement_placement::lookup module and migrates/expands unit tests under storage

Technical Notes: EntityPath::resolve returns both the resolved path and the number of projections consumed, and treats JSONB-backed paths as a storage boundary that permits arbitrary subpaths.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 3 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

❌ Patch coverage is 78.92977% with 63 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.07%. Comparing base (ef314c5) to head (8c045d7).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...al/hashql/mir/src/pass/execution/storage/entity.rs 61.33% 28 Missing and 1 partial ⚠️
...ibs/@local/hashql/mir/src/pass/execution/vertex.rs 68.18% 6 Missing and 1 partial ⚠️
...hql/mir/src/pass/analysis/data_dependency/graph.rs 50.00% 4 Missing ⚠️
...cal/hashql/core/src/graph/algorithms/tarjan/mod.rs 0.00% 3 Missing ⚠️
libs/@local/hashql/mir/src/body/place.rs 0.00% 3 Missing ⚠️
libs/@local/hashql/core/src/id/slice.rs 0.00% 2 Missing ⚠️
libs/@local/hashql/core/src/module/mod.rs 0.00% 2 Missing ⚠️
...ass/execution/statement_placement/embedding/mod.rs 71.42% 1 Missing and 1 partial ⚠️
...pass/execution/statement_placement/postgres/mod.rs 66.66% 1 Missing and 1 partial ⚠️
...hashql/core/src/graph/algorithms/dominators/mod.rs 0.00% 1 Missing ⚠️
... and 8 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8496      +/-   ##
==========================================
+ Coverage   63.03%   63.07%   +0.04%     
==========================================
  Files        1302     1308       +6     
  Lines      132960   132964       +4     
  Branches     5509     5510       +1     
==========================================
+ Hits        83808    83869      +61     
+ Misses      48238    48180      -58     
- Partials      914      915       +1     
Flag Coverage Δ
apps.hash-ai-worker-ts 1.40% <ø> (ø)
apps.hash-api 0.00% <ø> (ø)
local.hash-graph-sdk 7.73% <ø> (ø)
local.hash-isomorphic-utils 0.00% <ø> (ø)
rust.hash-graph-api 2.85% <ø> (ø)
rust.hashql-ast 87.23% <ø> (-0.02%) ⬇️
rust.hashql-compiletest 29.69% <ø> (ø)
rust.hashql-core 82.29% <37.50%> (+0.02%) ⬆️
rust.hashql-eval 69.13% <ø> (ø)
rust.hashql-hir 89.06% <ø> (-0.05%) ⬇️
rust.hashql-mir 92.64% <82.54%> (+0.21%) ⬆️
rust.hashql-syntax-jexpr 94.05% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 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
Copy link

codspeed-hq bot commented Feb 28, 2026

Merging this PR will not alter performance

✅ 68 untouched benchmarks
🗄️ 12 archived benchmarks run1


Comparing bm/be-434-hashql-entity-path-resolution-and-storage-mapping (8c045d7) with bm/be-427-hashql-derive-macro-for-enum-based-id-types (b816f15)

Open in CodSpeed

Footnotes

  1. 12 benchmarks were run, but are now archived. If they were deleted in another branch, consider rebasing to remove them from the report. Instead if they were added back, click here to restore them.

Copy link

@cursor cursor bot left a comment

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 2 potential issues.

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

@github-actions
Copy link
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.5 \mathrm{ms} \pm 146 \mathrm{μs}\left({\color{gray}2.80 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.57 \mathrm{ms} \pm 15.4 \mathrm{μs}\left({\color{gray}1.50 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1001 $$12.7 \mathrm{ms} \pm 86.2 \mathrm{μs}\left({\color{gray}2.72 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$43.7 \mathrm{ms} \pm 315 \mathrm{μs}\left({\color{gray}0.752 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$16.0 \mathrm{ms} \pm 101 \mathrm{μs}\left({\color{red}6.90 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1526 $$25.0 \mathrm{ms} \pm 158 \mathrm{μs}\left({\color{gray}2.27 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$28.8 \mathrm{ms} \pm 203 \mathrm{μs}\left({\color{gray}0.565 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.92 \mathrm{ms} \pm 20.5 \mathrm{μs}\left({\color{gray}1.45 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$13.5 \mathrm{ms} \pm 110 \mathrm{μs}\left({\color{gray}-2.594 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$3.89 \mathrm{ms} \pm 23.3 \mathrm{μs}\left({\color{gray}0.598 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.08 \mathrm{ms} \pm 15.9 \mathrm{μs}\left({\color{gray}0.141 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 51 $$3.43 \mathrm{ms} \pm 15.8 \mathrm{μs}\left({\color{gray}0.099 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$5.29 \mathrm{ms} \pm 27.4 \mathrm{μs}\left({\color{gray}0.019 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.65 \mathrm{ms} \pm 17.9 \mathrm{μs}\left({\color{gray}-0.974 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 107 $$4.25 \mathrm{ms} \pm 23.2 \mathrm{μs}\left({\color{gray}-0.079 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$4.57 \mathrm{ms} \pm 24.5 \mathrm{μs}\left({\color{gray}-0.382 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.52 \mathrm{ms} \pm 16.9 \mathrm{μs}\left({\color{gray}-0.914 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$4.27 \mathrm{ms} \pm 32.4 \mathrm{μs}\left({\color{gray}0.708 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.87 \mathrm{ms} \pm 32.2 \mathrm{μs}\left({\color{gray}2.62 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.76 \mathrm{ms} \pm 13.4 \mathrm{μs}\left({\color{gray}-0.349 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1 $$2.86 \mathrm{ms} \pm 12.8 \mathrm{μs}\left({\color{gray}0.139 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$3.17 \mathrm{ms} \pm 15.7 \mathrm{μs}\left({\color{gray}1.00 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.96 \mathrm{ms} \pm 13.6 \mathrm{μs}\left({\color{gray}-0.065 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$3.24 \mathrm{ms} \pm 11.5 \mathrm{μs}\left({\color{gray}-0.466 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$3.20 \mathrm{ms} \pm 16.6 \mathrm{μs}\left({\color{gray}0.238 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.90 \mathrm{ms} \pm 13.8 \mathrm{μs}\left({\color{gray}0.678 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 25 $$3.07 \mathrm{ms} \pm 17.0 \mathrm{μs}\left({\color{gray}-0.145 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.60 \mathrm{ms} \pm 15.8 \mathrm{μs}\left({\color{gray}0.075 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.19 \mathrm{ms} \pm 13.7 \mathrm{μs}\left({\color{gray}0.860 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 26 $$3.42 \mathrm{ms} \pm 16.7 \mathrm{μs}\left({\color{gray}0.862 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$3.56 \mathrm{ms} \pm 17.2 \mathrm{μs}\left({\color{gray}0.500 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.18 \mathrm{ms} \pm 19.1 \mathrm{μs}\left({\color{gray}1.14 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$3.46 \mathrm{ms} \pm 19.2 \mathrm{μs}\left({\color{gray}1.32 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$41.7 \mathrm{ms} \pm 166 \mathrm{μs}\left({\color{gray}-2.109 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$79.3 \mathrm{ms} \pm 405 \mathrm{μs}\left({\color{red}28.8 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$46.5 \mathrm{ms} \pm 200 \mathrm{μs}\left({\color{gray}0.988 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$48.6 \mathrm{ms} \pm 274 \mathrm{μs}\left({\color{gray}-4.543 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$56.1 \mathrm{ms} \pm 367 \mathrm{μs}\left({\color{gray}-0.458 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$43.6 \mathrm{ms} \pm 177 \mathrm{μs}\left({\color{gray}-2.808 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$423 \mathrm{ms} \pm 818 \mathrm{μs}\left({\color{red}68.0 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$97.6 \mathrm{ms} \pm 455 \mathrm{μs}\left({\color{gray}-3.523 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$87.4 \mathrm{ms} \pm 299 \mathrm{μs}\left({\color{lightgreen}-8.630 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$284 \mathrm{ms} \pm 714 \mathrm{μs}\left({\color{lightgreen}-10.800 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$15.8 \mathrm{ms} \pm 79.6 \mathrm{μs}\left({\color{gray}-3.050 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$15.8 \mathrm{ms} \pm 86.6 \mathrm{μs}\left({\color{lightgreen}-6.233 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$16.1 \mathrm{ms} \pm 93.5 \mathrm{μs}\left({\color{gray}1.26 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$15.7 \mathrm{ms} \pm 80.0 \mathrm{μs}\left({\color{lightgreen}-5.762 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$18.7 \mathrm{ms} \pm 95.8 \mathrm{μs}\left({\color{gray}0.972 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$15.7 \mathrm{ms} \pm 82.1 \mathrm{μs}\left({\color{gray}-4.280 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$15.7 \mathrm{ms} \pm 72.2 \mathrm{μs}\left({\color{gray}-4.433 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$15.5 \mathrm{ms} \pm 74.3 \mathrm{μs}\left({\color{gray}-1.656 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$16.3 \mathrm{ms} \pm 93.2 \mathrm{μs}\left({\color{gray}1.79 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$23.6 \mathrm{ms} \pm 144 \mathrm{μs}\left({\color{gray}0.037 \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 $$29.9 \mathrm{ms} \pm 315 \mathrm{μs}\left({\color{gray}-1.688 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$31.3 \mathrm{ms} \pm 317 \mathrm{μs}\left({\color{gray}-0.283 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$31.1 \mathrm{ms} \pm 273 \mathrm{μs}\left({\color{gray}-2.305 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$30.6 \mathrm{ms} \pm 256 \mathrm{μs}\left({\color{gray}-1.622 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$30.8 \mathrm{ms} \pm 280 \mathrm{μs}\left({\color{gray}-3.103 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$31.3 \mathrm{ms} \pm 276 \mathrm{μs}\left({\color{gray}2.05 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$33.3 \mathrm{ms} \pm 274 \mathrm{μs}\left({\color{red}10.7 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$31.2 \mathrm{ms} \pm 273 \mathrm{μs}\left({\color{gray}2.27 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$31.3 \mathrm{ms} \pm 313 \mathrm{μs}\left({\color{gray}0.420 \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.55 \mathrm{ms} \pm 38.7 \mathrm{μs}\left({\color{gray}0.116 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$90.5 \mathrm{ms} \pm 498 \mathrm{μs}\left({\color{lightgreen}-51.300 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$141 \mathrm{ms} \pm 426 \mathrm{μs}\left({\color{lightgreen}-41.307 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$98.1 \mathrm{ms} \pm 559 \mathrm{μs}\left({\color{lightgreen}-48.741 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$105 \mathrm{ms} \pm 419 \mathrm{μs}\left({\color{lightgreen}-48.110 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$115 \mathrm{ms} \pm 443 \mathrm{μs}\left({\color{lightgreen}-45.658 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$124 \mathrm{ms} \pm 619 \mathrm{μs}\left({\color{lightgreen}-42.995 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$88.1 \mathrm{ms} \pm 414 \mathrm{μs}\left({\color{lightgreen}-45.671 \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 $$118 \mathrm{ms} \pm 500 \mathrm{μs}\left({\color{lightgreen}-36.937 \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 $$95.6 \mathrm{ms} \pm 419 \mathrm{μs}\left({\color{lightgreen}-43.659 \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 $$103 \mathrm{ms} \pm 461 \mathrm{μs}\left({\color{lightgreen}-42.584 \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 $$105 \mathrm{ms} \pm 396 \mathrm{μs}\left({\color{lightgreen}-41.906 \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 $$105 \mathrm{ms} \pm 352 \mathrm{μs}\left({\color{lightgreen}-40.888 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$138 \mathrm{ms} \pm 537 \mathrm{μs}\left({\color{red}6.36 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$140 \mathrm{ms} \pm 605 \mathrm{μs}\left({\color{gray}4.79 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$105 \mathrm{ms} \pm 571 \mathrm{μs}\left({\color{gray}-0.713 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$591 \mathrm{ms} \pm 2.30 \mathrm{ms}\left({\color{gray}3.66 \mathrm{\%}}\right) $$ Flame Graph

Base automatically changed from bm/be-427-hashql-derive-macro-for-enum-based-id-types to main February 28, 2026 19:00
@vercel vercel bot requested a review from a team as a code owner February 28, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team

Development

Successfully merging this pull request may close these issues.

1 participant