Skip to content

H-6609: Remove hash-backend-load, updates for uuid vuln#8889

Open
CiaranMn wants to merge 8 commits into
mainfrom
cm/remove-backend-load-and-uuid-updates
Open

H-6609: Remove hash-backend-load, updates for uuid vuln#8889
CiaranMn wants to merge 8 commits into
mainfrom
cm/remove-backend-load-and-uuid-updates

Conversation

@CiaranMn

@CiaranMn CiaranMn commented Jun 19, 2026

Copy link
Copy Markdown
Member

🌟 What is the purpose of this PR?

We have a package hash-backend-load that was used earlier for load testing.

We're not really using it at the moment, and artillery is pulling in lots of dependencies that need maintenance.

This PR removes the package, and makes some other small dependency updates to address vulnerabilities in uuid.

This doesn't remove all the old uuid, but some dependencies haven't yet updated. I will revisit again tomorrow, but this is a start with the ones that are less messy.

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

Copilot AI review requested due to automatic review settings June 19, 2026 18:55
@CiaranMn CiaranMn requested a review from a team as a code owner June 19, 2026 18:55
@vercel

vercel Bot commented Jun 19, 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 Jun 19, 2026 9:55pm
hashdotdesign-tokens Ready Ready Preview, Comment Jun 19, 2026 9:55pm
petrinaut Ready Ready Preview, Comment Jun 19, 2026 9:55pm

@cursor

cursor Bot commented Jun 19, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Temporal 1.12→1.18 is a large jump on workflow workers and the API client; validate deploys and workflow compatibility. Removing load tests and slonik only affects unused code paths.

Overview
Removes the unused @tests/hash-backend-load Artillery load-test workspace (scenarios, tracing helpers, and related turbo tasks) to cut maintenance on heavy transitive dependencies.

Alongside that cleanup, Temporal packages are upgraded from 1.12.1 → 1.18.1 across API, workers, graph SDK, and backend utils. Smaller bumps include @google-cloud/storage, @snowplow/node-tracker, and natural.

slonik and libs/@local/hash-backend-utils/src/postgres.ts are dropped with the load package (no remaining callers). Root resolutions add bull/uuid and @temporalio/proto/protobufjs to steer transitive uuid / protobuf versions toward safer releases.

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

@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 > backend Owned by the @backend team area/tests New or updated tests area/apps type/legal Owned by the @legal team labels Jun 19, 2026
@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

The following issues were found:

  • ❌ 1 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses.
  • ⚠️ 1 packages with OpenSSF Scorecard issues.

View full job summary

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

This PR removes the unused @tests/hash-backend-load load-testing package (and its Artillery/OpenTelemetry setup) to reduce dependency maintenance, and applies dependency updates intended to address uuid-related vulnerabilities (plus a few other version bumps).

Changes:

  • Removed the entire tests/hash-backend-load workspace (configs, scripts, scenarios, and source).
  • Updated Temporal dependencies across multiple packages to 1.18.1 (plus a few other dependency bumps).
  • Removed the slonik-based Postgres pool helper from @local/hash-backend-utils and dropped the slonik dependency.

Reviewed changes

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

Show a summary per file
File Description
tests/hash-backend-load/turbo.json Removed turbo task configuration for the deleted load-testing workspace.
tests/hash-backend-load/tsconfig.json Removed TS config for the deleted load-testing workspace.
tests/hash-backend-load/tsconfig.build.json Removed build TS config for the deleted load-testing workspace.
tests/hash-backend-load/src/types.ts Removed shared Artillery hook/type definitions for the deleted load-testing workspace.
tests/hash-backend-load/src/tracing/sdk.ts Removed OpenTelemetry SDK wiring used by the load tests.
tests/hash-backend-load/src/tracing/request.ts Removed per-request span injection hooks used by the load tests.
tests/hash-backend-load/src/main.ts Removed package entrypoint exporting Artillery processors/hooks.
tests/hash-backend-load/src/graph/user.ts Removed Graph helper used by load-test scenarios.
tests/hash-backend-load/src/graph/api.ts Removed Graph API client setup used by load tests.
tests/hash-backend-load/src/authentication/session.ts Removed Kratos session refresh hook used by load tests.
tests/hash-backend-load/src/authentication/registration.ts Removed signup/registration flow helpers used by load tests.
tests/hash-backend-load/src/authentication/reauthenticate.ts Removed reauth logic used by load tests.
tests/hash-backend-load/src/authentication/kratos.ts Removed Kratos client setup/types used by load tests.
tests/hash-backend-load/scripts/test.sh Removed integration test runner script for Artillery scenarios.
tests/hash-backend-load/scenarios/register.yml Removed Artillery “Register” scenario.
tests/hash-backend-load/scenarios/read-property-types.yml Removed Artillery scenario for reading property types.
tests/hash-backend-load/scenarios/read-property-types-value-property-refs.yml Removed Artillery scenario variant for deeper references.
tests/hash-backend-load/scenarios/read-property-types-property-refs.yml Removed Artillery scenario variant for property references.
tests/hash-backend-load/scenarios/read-entity-types.yml Removed Artillery scenario for reading entity types.
tests/hash-backend-load/scenarios/read-entity-types-value-property-entity-refs.yml Removed Artillery scenario variant for deeper type references.
tests/hash-backend-load/scenarios/read-entity-types-property-entity-refs.yml Removed Artillery scenario variant for type refs.
tests/hash-backend-load/scenarios/read-entity-types-parents.yml Removed Artillery scenario variant for parents.
tests/hash-backend-load/scenarios/read-entity-types-entity-refs.yml Removed Artillery scenario variant for entity refs.
tests/hash-backend-load/scenarios/read-data-types.yml Removed Artillery scenario for reading data types.
tests/hash-backend-load/scenarios/ontology-read.yml Removed Artillery scenario for ontology read queries.
tests/hash-backend-load/scenarios/flow.yml Removed Artillery scenario for “flow run” style load.
tests/hash-backend-load/rollup.config.ts Removed bundling configuration for the deleted load-testing workspace.
tests/hash-backend-load/package.json Removed workspace manifest for the deleted load-testing workspace.
tests/hash-backend-load/LICENSE.md Removed workspace-local license file with the deleted package.
tests/hash-backend-load/eslint.config.js Removed workspace-local ESLint config with the deleted package.
tests/hash-backend-load/artillery.yml Removed Artillery config with the deleted package.
package.json Added a resolutions entry intended to address uuid vulnerability exposure.
libs/@local/hash-isomorphic-utils/package.json Bumped @temporalio/workflow to 1.18.1.
libs/@local/hash-backend-utils/src/postgres.ts Removed Slonik-based Postgres pool helper implementation.
libs/@local/hash-backend-utils/package.json Bumped Temporal packages to 1.18.1, removed slonik.
libs/@local/graph/sdk/typescript/package.json Bumped @temporalio/client to 1.18.1.
apps/hash-integration-worker/package.json Bumped Temporal packages to 1.18.1.
apps/hash-api/package.json Bumped @temporalio/* to 1.18.1 and updated @snowplow/node-tracker.
apps/hash-ai-worker-ts/package.json Bumped Temporal packages to 1.18.1 and updated @google-cloud/storage.
.claude/hooks/package.json Bumped natural patch version.

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

Comment thread package.json
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.09%. Comparing base (fbfcb98) to head (785cdc6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8889   +/-   ##
=======================================
  Coverage   59.08%   59.09%           
=======================================
  Files        1347     1346    -1     
  Lines      130513   130507    -6     
  Branches     5906     5906           
=======================================
- Hits        77118    77117    -1     
+ Misses      52490    52485    -5     
  Partials      905      905           
Flag Coverage Δ
apps.hash-api 0.00% <ø> (ø)
blockprotocol.type-system 40.84% <ø> (ø)
local.harpc-client 51.49% <ø> (ø)
local.hash-backend-utils 2.82% <ø> (+<0.01%) ⬆️
local.hash-graph-sdk 9.63% <ø> (ø)
local.hash-isomorphic-utils 0.00% <ø> (ø)
rust.antsi 0.00% <ø> (ø)
rust.error-stack 90.87% <ø> (ø)
rust.harpc-codec 84.70% <ø> (ø)
rust.harpc-net 96.18% <ø> (-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-graph-api 2.52% <ø> (ø)
rust.hash-graph-authorization 62.34% <ø> (ø)
rust.hash-graph-postgres-store 26.78% <ø> (ø)
rust.hash-graph-store 37.76% <ø> (ø)
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.24% <ø> (ø)
rust.hashql-core 79.60% <ø> (ø)
rust.hashql-diagnostics 72.31% <ø> (ø)
rust.hashql-eval 75.69% <ø> (ø)
rust.hashql-hir 89.06% <ø> (ø)
rust.hashql-mir 87.05% <ø> (ø)
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 19, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 80 untouched benchmarks


Comparing cm/remove-backend-load-and-uuid-updates (785cdc6) with main (439081a)

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 $$27.1 \mathrm{ms} \pm 163 \mathrm{μs}\left({\color{gray}0.021 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.51 \mathrm{ms} \pm 23.8 \mathrm{μs}\left({\color{gray}2.35 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1001 $$12.4 \mathrm{ms} \pm 97.0 \mathrm{μs}\left({\color{gray}-0.443 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$42.8 \mathrm{ms} \pm 318 \mathrm{μs}\left({\color{gray}-1.163 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$14.4 \mathrm{ms} \pm 162 \mathrm{μs}\left({\color{gray}3.11 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1526 $$24.0 \mathrm{ms} \pm 227 \mathrm{μs}\left({\color{gray}1.19 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$28.5 \mathrm{ms} \pm 259 \mathrm{μs}\left({\color{gray}1.59 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.79 \mathrm{ms} \pm 21.5 \mathrm{μs}\left({\color{gray}0.847 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$13.3 \mathrm{ms} \pm 140 \mathrm{μs}\left({\color{gray}0.542 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$3.81 \mathrm{ms} \pm 18.6 \mathrm{μs}\left({\color{gray}-1.777 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.03 \mathrm{ms} \pm 20.9 \mathrm{μs}\left({\color{gray}-0.016 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 51 $$3.41 \mathrm{ms} \pm 31.8 \mathrm{μs}\left({\color{gray}0.836 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$5.19 \mathrm{ms} \pm 27.9 \mathrm{μs}\left({\color{gray}-1.215 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.54 \mathrm{ms} \pm 18.4 \mathrm{μs}\left({\color{gray}-1.259 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 107 $$4.15 \mathrm{ms} \pm 23.7 \mathrm{μs}\left({\color{gray}-0.696 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$4.43 \mathrm{ms} \pm 29.4 \mathrm{μs}\left({\color{gray}0.817 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.48 \mathrm{ms} \pm 19.2 \mathrm{μs}\left({\color{gray}-0.795 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$4.10 \mathrm{ms} \pm 21.5 \mathrm{μs}\left({\color{gray}0.079 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.65 \mathrm{ms} \pm 19.9 \mathrm{μs}\left({\color{gray}-1.750 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.51 \mathrm{ms} \pm 16.8 \mathrm{μs}\left({\color{gray}-0.760 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1 $$2.59 \mathrm{ms} \pm 19.0 \mathrm{μs}\left({\color{gray}-3.372 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$2.89 \mathrm{ms} \pm 20.9 \mathrm{μs}\left({\color{gray}-1.910 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.65 \mathrm{ms} \pm 16.9 \mathrm{μs}\left({\color{gray}-3.151 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$2.84 \mathrm{ms} \pm 14.9 \mathrm{μs}\left({\color{gray}-2.642 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$3.05 \mathrm{ms} \pm 20.9 \mathrm{μs}\left({\color{gray}-0.004 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.77 \mathrm{ms} \pm 18.5 \mathrm{μs}\left({\color{gray}0.979 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 25 $$3.00 \mathrm{ms} \pm 17.2 \mathrm{μs}\left({\color{gray}-0.610 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.48 \mathrm{ms} \pm 33.4 \mathrm{μs}\left({\color{gray}1.43 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.96 \mathrm{ms} \pm 16.5 \mathrm{μs}\left({\color{gray}-0.133 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 26 $$3.30 \mathrm{ms} \pm 21.6 \mathrm{μs}\left({\color{gray}0.728 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$3.40 \mathrm{ms} \pm 31.5 \mathrm{μs}\left({\color{gray}1.64 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.94 \mathrm{ms} \pm 16.6 \mathrm{μs}\left({\color{gray}-0.056 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$3.33 \mathrm{ms} \pm 19.9 \mathrm{μs}\left({\color{gray}0.027 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$54.9 \mathrm{ms} \pm 392 \mathrm{μs}\left({\color{gray}-0.621 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$46.1 \mathrm{ms} \pm 247 \mathrm{μs}\left({\color{gray}-0.911 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$50.3 \mathrm{ms} \pm 368 \mathrm{μs}\left({\color{gray}-3.676 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$45.3 \mathrm{ms} \pm 320 \mathrm{μs}\left({\color{gray}1.85 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$63.0 \mathrm{ms} \pm 514 \mathrm{μs}\left({\color{gray}1.13 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$62.5 \mathrm{ms} \pm 515 \mathrm{μs}\left({\color{gray}0.622 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$57.1 \mathrm{ms} \pm 468 \mathrm{μs}\left({\color{gray}1.55 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$104 \mathrm{ms} \pm 698 \mathrm{μs}\left({\color{gray}0.877 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$46.4 \mathrm{ms} \pm 251 \mathrm{μs}\left({\color{gray}0.942 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$325 \mathrm{ms} \pm 1.26 \mathrm{ms}\left({\color{red}19.2 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$19.4 \mathrm{ms} \pm 127 \mathrm{μs}\left({\color{lightgreen}-8.169 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$20.0 \mathrm{ms} \pm 125 \mathrm{μs}\left({\color{gray}-4.184 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$20.4 \mathrm{ms} \pm 130 \mathrm{μs}\left({\color{gray}-2.498 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$19.2 \mathrm{ms} \pm 140 \mathrm{μs}\left({\color{gray}-1.525 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$25.2 \mathrm{ms} \pm 165 \mathrm{μs}\left({\color{gray}-1.541 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$19.1 \mathrm{ms} \pm 158 \mathrm{μs}\left({\color{gray}-1.050 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$19.2 \mathrm{ms} \pm 126 \mathrm{μs}\left({\color{gray}-2.108 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$19.4 \mathrm{ms} \pm 123 \mathrm{μs}\left({\color{gray}-3.112 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$20.2 \mathrm{ms} \pm 133 \mathrm{μs}\left({\color{gray}-4.348 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$26.6 \mathrm{ms} \pm 213 \mathrm{μs}\left({\color{gray}-4.595 \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 $$35.2 \mathrm{ms} \pm 304 \mathrm{μs}\left({\color{lightgreen}-7.666 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$34.6 \mathrm{ms} \pm 313 \mathrm{μs}\left({\color{lightgreen}-5.667 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$34.7 \mathrm{ms} \pm 299 \mathrm{μs}\left({\color{lightgreen}-5.590 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$33.9 \mathrm{ms} \pm 297 \mathrm{μs}\left({\color{gray}-3.125 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$35.4 \mathrm{ms} \pm 316 \mathrm{μs}\left({\color{gray}-2.137 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$34.8 \mathrm{ms} \pm 319 \mathrm{μs}\left({\color{gray}-2.043 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$34.5 \mathrm{ms} \pm 320 \mathrm{μs}\left({\color{gray}-3.869 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$34.7 \mathrm{ms} \pm 291 \mathrm{μs}\left({\color{gray}-1.739 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$33.9 \mathrm{ms} \pm 363 \mathrm{μs}\left({\color{gray}-3.219 \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.71 \mathrm{ms} \pm 46.4 \mathrm{μs}\left({\color{gray}-0.754 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$92.6 \mathrm{ms} \pm 605 \mathrm{μs}\left({\color{gray}-2.059 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$148 \mathrm{ms} \pm 803 \mathrm{μs}\left({\color{gray}-3.076 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$100 \mathrm{ms} \pm 706 \mathrm{μs}\left({\color{gray}0.216 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$111 \mathrm{ms} \pm 535 \mathrm{μs}\left({\color{gray}-3.926 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$118 \mathrm{ms} \pm 696 \mathrm{μs}\left({\color{gray}-3.045 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$127 \mathrm{ms} \pm 631 \mathrm{μs}\left({\color{gray}-2.870 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$103 \mathrm{ms} \pm 611 \mathrm{μs}\left({\color{gray}0.279 \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 $$134 \mathrm{ms} \pm 857 \mathrm{μs}\left({\color{gray}-0.363 \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 $$110 \mathrm{ms} \pm 552 \mathrm{μs}\left({\color{gray}-1.282 \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 $$120 \mathrm{ms} \pm 675 \mathrm{μs}\left({\color{gray}-0.134 \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 $$121 \mathrm{ms} \pm 717 \mathrm{μs}\left({\color{gray}-0.765 \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 $$122 \mathrm{ms} \pm 939 \mathrm{μs}\left({\color{gray}-0.451 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$185 \mathrm{ms} \pm 940 \mathrm{μs}\left({\color{red}23.8 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$149 \mathrm{ms} \pm 673 \mathrm{μs}\left({\color{gray}-2.944 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$40.2 \mathrm{ms} \pm 261 \mathrm{μs}\left({\color{gray}-0.675 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$558 \mathrm{ms} \pm 1.15 \mathrm{ms}\left({\color{gray}-1.869 \mathrm{\%}}\right) $$ Flame Graph

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 New or updated tests type/eng > backend Owned by the @backend team type/legal Owned by the @legal team

Development

Successfully merging this pull request may close these issues.

3 participants