Skip to content

SRE-981: Split the graph store and authorization Rust crates and TypeScript packages - #9442

Merged
TimDiekmann merged 1 commit into
t/sre-980-split-the-hash-codec-rust-crate-and-typescript-packagefrom
t/sre-981-split-the-graph-store-and-authorization-rust-crates-and
Aug 31, 2026
Merged

SRE-981: Split the graph store and authorization Rust crates and TypeScript packages#9442
TimDiekmann merged 1 commit into
t/sre-980-split-the-hash-codec-rust-crate-and-typescript-packagefrom
t/sre-981-split-the-graph-store-and-authorization-rust-crates-and

Conversation

@TimDiekmann

Copy link
Copy Markdown
Member

🌟 What is the purpose of this PR?

libs/@local/graph/store and libs/@local/graph/authorization each held a crate and the package exporting its generated types. Each crate moves to rust/, and a sibling typescript/ holds @local/hash-graph-store and @local/hash-graph-authorization.

The two go together because store's generated declarations import authorization's.

Builds on SRE-980.

🔍 What does this change?

  • Both TypeScript packages follow the shape SRE-980 settled on: codegen copies the crate's snapshot into src/generated, build emits dist, exports points there
  • Eighteen hand-written imports move from @rust/…/types to @local/…/types, across the frontend, the API, the SDK, the isomorphic utilities and the integration tests
  • Four of those consumers had never declared the dependency and resolved it by hoisting — they declare it now, so affectedPackages can see the edge

Pre-Merge Checklist 🚀

🚢 Has this modified a publishable library?

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

📜 Does this require a change to the docs?

  • are internal and do not require a docs change

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

  • affected the execution graph, and the turbo.json's have been updated to reflect this

🐾 Next steps

SRE-982 and SRE-983, then SRE-984.

❓ How to test this?

  1. turbo run lint:tsc build --filter=@local/hash-graph-store --filter=@local/hash-graph-authorization
  2. turbo run lint:tsc --filter=@local/hash-graph-sdk --filter=@apps/hash-frontend
  3. mise run sync:turborepo && git diff --exit-code '**/package.json'

…ckages

Both crates shared a directory with the package exporting their generated
types. Each moves to `rust/`, and a sibling `typescript/` holds
`@local/hash-graph-store` and `@local/hash-graph-authorization`, built into
`dist` like the packages beside them.

They go together because store's generated declarations import authorization's.
That reference now names the TypeScript package rather than the crate, as do
the eighteen hand-written imports across the frontend, the API, the SDK, the
isomorphic utilities and the integration tests.

Four of those consumers had never declared the dependency at all and resolved
it by hoisting. They declare it now: the package graph is what
`affectedPackages` walks, so an undeclared edge is one CI cannot see.
@TimDiekmann TimDiekmann self-assigned this Aug 29, 2026
@vercel

vercel Bot commented Aug 29, 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 Aug 29, 2026 6:55pm
hashdotdesign-tokens Ready Ready Preview Aug 29, 2026 6:55pm
petrinaut Ready Ready Preview Aug 29, 2026 6:55pm
petrinaut-docs Ready Ready Preview Aug 29, 2026 6:55pm

Request Review

@github-actions github-actions Bot added area/deps Relates to third-party dependencies (area) area/apps > hash* Affects HASH (a `hash-*` app) area/infra Relates to version control, CI, CD or IaC (area) area/apps > hash-api Affects the HASH API (app) area/libs Relates to first-party libraries/crates/packages (area) type/eng > frontend Owned by the @frontend team type/eng > backend Owned by the @backend team area/tests New or updated tests area/tests > integration New or updated integration tests area/apps type/legal Owned by the @legal team labels Aug 29, 2026
@TimDiekmann
TimDiekmann deployed to pull-request August 29, 2026 18:39 — with GitHub Actions Active
@TimDiekmann
TimDiekmann deployed to pull-request August 29, 2026 18:39 — with GitHub Actions Active
@codecov

codecov Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.99%. Comparing base (32efb65) to head (e3105db).

Additional details and impacted files
@@                                         Coverage Diff                                          @@
##           t/sre-980-split-the-hash-codec-rust-crate-and-typescript-package    #9442      +/-   ##
====================================================================================================
- Coverage                                                             60.99%   60.99%   -0.01%     
====================================================================================================
  Files                                                                  1447     1447              
  Lines                                                                144468   144468              
  Branches                                                               6687     6687              
====================================================================================================
- Hits                                                                  88121    88120       -1     
- Misses                                                                55243    55244       +1     
  Partials                                                               1104     1104              
Flag Coverage Δ
apps.hash-ai-worker-ts 1.99% <ø> (ø)
apps.hash-api 14.68% <ø> (ø)
blockprotocol.type-system 38.15% <ø> (ø)
local.claude-hooks 0.00% <ø> (ø)
local.harpc-client 51.49% <ø> (ø)
local.hash-backend-utils 3.27% <ø> (ø)
local.hash-graph-sdk 10.02% <ø> (ø)
local.hash-isomorphic-utils 12.22% <ø> (ø)
rust.antsi 2.36% <ø> (ø)
rust.error-stack 90.81% <ø> (ø)
rust.harpc-codec 84.70% <ø> (ø)
rust.harpc-net 96.24% <ø> (-0.02%) ⬇️
rust.harpc-tower 67.03% <ø> (ø)
rust.harpc-types 0.00% <ø> (ø)
rust.harpc-wire-protocol 92.23% <ø> (ø)
rust.hash-codec 72.76% <ø> (ø)
rust.hash-config 100.00% <ø> (ø)
rust.hash-graph-api 19.76% <ø> (ø)
rust.hash-graph-authentication 97.00% <ø> (ø)
rust.hash-graph-authorization 63.14% <ø> (ø)
rust.hash-graph-embeddings 91.88% <ø> (ø)
rust.hash-graph-postgres-store 32.02% <ø> (ø)
rust.hash-graph-store 48.41% <ø> (ø)
rust.hash-graph-temporal-versioning 50.18% <ø> (ø)
rust.hash-graph-types 0.00% <ø> (ø)
rust.hash-graph-validation 84.71% <ø> (ø)
rust.hash-middleware 92.19% <ø> (ø)
rust.hashql-ast 89.63% <ø> (ø)
rust.hashql-compiletest 28.39% <ø> (ø)
rust.hashql-core 78.95% <ø> (ø)
rust.hashql-diagnostics 72.51% <ø> (ø)
rust.hashql-eval 79.82% <ø> (ø)
rust.hashql-hir 89.09% <ø> (ø)
rust.hashql-mir 87.92% <ø> (ø)
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.

@TimDiekmann
TimDiekmann requested a review from a team August 29, 2026 18:44
@TimDiekmann
TimDiekmann marked this pull request as ready for review August 29, 2026 18:44
@TimDiekmann
TimDiekmann requested a review from a team as a code owner August 29, 2026 18:44
@cursor

cursor Bot commented Aug 29, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Wide import and build-graph churn across API, frontend, and SDK touching authorization and store types, but behavior should be unchanged if codegen and Turbo task ordering stay correct.

Overview
Reorganizes hash-graph-authorization and hash-graph-store so Rust lives under rust/ and generated TypeScript types ship from new workspace packages @local/hash-graph-authorization and @local/hash-graph-store, matching the SRE-980 split pattern (codegensrc/generated, builddist).

@rust/hash-graph-* npm packages in those folders no longer publish type exports; apps and shared TS code now import @local/hash-graph-authorization/types and @local/hash-graph-store/types instead of @rust/…. The graph SDK, hash-api, hash-frontend, hash-isomorphic-utils, and integration tests are updated, and several consumers gain explicit package.json dependencies that were previously satisfied by hoisting. Cargo workspace members and path aliases point at authorization/rust and store/rust; store’s TS codegen snapshots reference the local authorization package for cross-crate types.

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

@codspeed-hq

codspeed-hq Bot commented Aug 29, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 98 untouched benchmarks


Comparing t/sre-981-split-the-graph-store-and-authorization-rust-crates-and (e3105db) with t/sre-980-split-the-hash-codec-rust-crate-and-typescript-package (32efb65)

Open in CodSpeed

@github-actions

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 $$17.8 \mathrm{ms} \pm 187 \mathrm{μs}\left({\color{gray}0.361 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.19 \mathrm{ms} \pm 12.6 \mathrm{μs}\left({\color{gray}2.34 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1002 $$9.25 \mathrm{ms} \pm 59.8 \mathrm{μs}\left({\color{gray}-3.003 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$28.7 \mathrm{ms} \pm 204 \mathrm{μs}\left({\color{gray}-1.510 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$11.7 \mathrm{ms} \pm 80.6 \mathrm{μs}\left({\color{red}20.9 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1527 $$17.6 \mathrm{ms} \pm 181 \mathrm{μs}\left({\color{red}8.60 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$18.0 \mathrm{ms} \pm 222 \mathrm{μs}\left({\color{gray}-2.295 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.47 \mathrm{ms} \pm 18.2 \mathrm{μs}\left({\color{gray}-1.948 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$9.69 \mathrm{ms} \pm 49.8 \mathrm{μs}\left({\color{lightgreen}-7.666 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$2.32 \mathrm{ms} \pm 23.9 \mathrm{μs}\left({\color{gray}4.60 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$1.84 \mathrm{ms} \pm 14.5 \mathrm{μs}\left({\color{gray}1.21 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 52 $$2.13 \mathrm{ms} \pm 10.9 \mathrm{μs}\left({\color{red}5.13 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$3.09 \mathrm{ms} \pm 31.8 \mathrm{μs}\left({\color{lightgreen}-5.027 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.27 \mathrm{ms} \pm 73.0 \mathrm{μs}\left({\color{gray}3.65 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 108 $$2.53 \mathrm{ms} \pm 16.8 \mathrm{μs}\left({\color{gray}0.201 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$2.70 \mathrm{ms} \pm 23.6 \mathrm{μs}\left({\color{gray}3.85 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.16 \mathrm{ms} \pm 11.9 \mathrm{μs}\left({\color{gray}3.20 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$2.59 \mathrm{ms} \pm 42.3 \mathrm{μs}\left({\color{red}6.41 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$1.68 \mathrm{ms} \pm 9.64 \mathrm{μs}\left({\color{gray}3.38 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$1.58 \mathrm{ms} \pm 14.1 \mathrm{μs}\left({\color{gray}4.04 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 2 $$1.77 \mathrm{ms} \pm 112 \mathrm{μs}\left({\color{red}8.70 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$1.84 \mathrm{ms} \pm 12.3 \mathrm{μs}\left({\color{gray}-1.908 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$1.72 \mathrm{ms} \pm 8.34 \mathrm{μs}\left({\color{gray}2.09 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$1.84 \mathrm{ms} \pm 10.0 \mathrm{μs}\left({\color{gray}-0.586 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$1.92 \mathrm{ms} \pm 14.6 \mathrm{μs}\left({\color{gray}2.77 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$1.76 \mathrm{ms} \pm 21.9 \mathrm{μs}\left({\color{red}6.49 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 26 $$1.93 \mathrm{ms} \pm 21.6 \mathrm{μs}\left({\color{red}7.35 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$2.12 \mathrm{ms} \pm 13.1 \mathrm{μs}\left({\color{gray}1.92 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$1.86 \mathrm{ms} \pm 19.7 \mathrm{μs}\left({\color{gray}0.701 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 27 $$2.09 \mathrm{ms} \pm 13.5 \mathrm{μs}\left({\color{red}5.67 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$2.04 \mathrm{ms} \pm 12.2 \mathrm{μs}\left({\color{gray}-0.151 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$1.86 \mathrm{ms} \pm 13.9 \mathrm{μs}\left({\color{gray}3.28 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$2.04 \mathrm{ms} \pm 19.9 \mathrm{μs}\left({\color{gray}3.34 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$28.0 \mathrm{ms} \pm 318 \mathrm{μs}\left({\color{red}8.00 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$22.0 \mathrm{ms} \pm 173 \mathrm{μs}\left({\color{gray}2.18 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$24.3 \mathrm{ms} \pm 188 \mathrm{μs}\left({\color{gray}-2.239 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$20.9 \mathrm{ms} \pm 114 \mathrm{μs}\left({\color{gray}-2.472 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$27.8 \mathrm{ms} \pm 132 \mathrm{μs}\left({\color{gray}-3.239 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$32.1 \mathrm{ms} \pm 628 \mathrm{μs}\left({\color{red}6.19 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$27.1 \mathrm{ms} \pm 388 \mathrm{μs}\left({\color{red}5.24 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$57.5 \mathrm{ms} \pm 325 \mathrm{μs}\left({\color{gray}-2.774 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$22.5 \mathrm{ms} \pm 144 \mathrm{μs}\left({\color{red}5.93 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$181 \mathrm{ms} \pm 1.48 \mathrm{ms}\left({\color{red}20.8 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$7.01 \mathrm{ms} \pm 44.2 \mathrm{μs}\left({\color{gray}4.59 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$6.89 \mathrm{ms} \pm 54.6 \mathrm{μs}\left({\color{red}5.39 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$6.60 \mathrm{ms} \pm 42.7 \mathrm{μs}\left({\color{gray}-3.279 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$7.05 \mathrm{ms} \pm 43.7 \mathrm{μs}\left({\color{red}6.09 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$7.14 \mathrm{ms} \pm 96.2 \mathrm{μs}\left({\color{gray}0.594 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$7.04 \mathrm{ms} \pm 55.0 \mathrm{μs}\left({\color{gray}-3.893 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$6.79 \mathrm{ms} \pm 38.2 \mathrm{μs}\left({\color{lightgreen}-5.047 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$7.00 \mathrm{ms} \pm 61.7 \mathrm{μs}\left({\color{gray}-2.051 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$7.38 \mathrm{ms} \pm 95.1 \mathrm{μs}\left({\color{gray}0.316 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$7.71 \mathrm{ms} \pm 116 \mathrm{μs}\left({\color{gray}-1.488 \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 $$7.33 \mathrm{ms} \pm 84.3 \mathrm{μs}\left({\color{gray}-0.581 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$6.94 \mathrm{ms} \pm 71.9 \mathrm{μs}\left({\color{lightgreen}-8.289 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$6.88 \mathrm{ms} \pm 73.7 \mathrm{μs}\left({\color{gray}-2.303 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$7.00 \mathrm{ms} \pm 61.6 \mathrm{μs}\left({\color{gray}-4.074 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$7.34 \mathrm{ms} \pm 52.5 \mathrm{μs}\left({\color{gray}1.05 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$7.05 \mathrm{ms} \pm 74.5 \mathrm{μs}\left({\color{gray}-2.850 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$6.97 \mathrm{ms} \pm 46.6 \mathrm{μs}\left({\color{lightgreen}-7.100 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$7.16 \mathrm{ms} \pm 91.8 \mathrm{μs}\left({\color{gray}-2.576 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$7.27 \mathrm{ms} \pm 59.6 \mathrm{μs}\left({\color{gray}-4.147 \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 $$5.10 \mathrm{ms} \pm 44.2 \mathrm{μs}\left({\color{gray}-1.553 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$35.4 \mathrm{ms} \pm 281 \mathrm{μs}\left({\color{lightgreen}-11.909 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$69.1 \mathrm{ms} \pm 376 \mathrm{μs}\left({\color{lightgreen}-5.882 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$39.6 \mathrm{ms} \pm 304 \mathrm{μs}\left({\color{lightgreen}-12.948 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$46.5 \mathrm{ms} \pm 291 \mathrm{μs}\left({\color{lightgreen}-9.680 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$52.1 \mathrm{ms} \pm 466 \mathrm{μs}\left({\color{lightgreen}-9.107 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$55.7 \mathrm{ms} \pm 340 \mathrm{μs}\left({\color{lightgreen}-7.481 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$27.0 \mathrm{ms} \pm 360 \mathrm{μs}\left({\color{lightgreen}-7.480 \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 $$46.2 \mathrm{ms} \pm 439 \mathrm{μs}\left({\color{gray}2.67 \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 $$31.1 \mathrm{ms} \pm 241 \mathrm{μs}\left({\color{lightgreen}-5.693 \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 $$37.1 \mathrm{ms} \pm 223 \mathrm{μs}\left({\color{gray}-4.395 \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 $$37.5 \mathrm{ms} \pm 331 \mathrm{μs}\left({\color{lightgreen}-7.179 \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 $$38.3 \mathrm{ms} \pm 307 \mathrm{μs}\left({\color{gray}-1.615 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$78.3 \mathrm{ms} \pm 296 \mathrm{μs}\left({\color{red}5.84 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$84.4 \mathrm{ms} \pm 388 \mathrm{μs}\left({\color{red}6.54 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$11.1 \mathrm{ms} \pm 85.0 \mathrm{μs}\left({\color{lightgreen}-23.512 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$317 \mathrm{ms} \pm 720 \mathrm{μs}\left({\color{gray}-2.796 \mathrm{\%}}\right) $$ Flame Graph

@TimDiekmann
TimDiekmann added this pull request to the merge queue Aug 31, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue because a pull request earlier in the stack was removed Aug 31, 2026
@TimDiekmann
TimDiekmann added this pull request to the merge queue Aug 31, 2026
Merged via the queue into main with commit c780b58 Aug 31, 2026
218 checks passed
@TimDiekmann
TimDiekmann deleted the t/sre-981-split-the-graph-store-and-authorization-rust-crates-and branch August 31, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/apps > hash* Affects HASH (a `hash-*` app) area/apps > hash-api Affects the HASH API (app) area/apps area/deps Relates to third-party dependencies (area) area/infra Relates to version control, CI, CD or IaC (area) area/libs Relates to first-party libraries/crates/packages (area) area/tests > integration New or updated integration tests area/tests New or updated tests type/eng > backend Owned by the @backend team type/eng > frontend Owned by the @frontend team type/legal Owned by the @legal team

Development

Successfully merging this pull request may close these issues.

3 participants