Skip to content
Source
Sign inSign up
TanStack/db

test: repair structural identity oracle normal form #2153

MergedKyleAMathewsmerged 9 commits intomain fromrefs/pull/2153/headmerged by KyleAMathews

KyleAMathewscommented

Why this change

The structural identity oracle rejected two specs that build the same nested array. An explicit array around deep(5, value) equals deep(6, value) after construction. The old model kept the deep tag in its normal form. It therefore disagreed with D2 equality and produced a false failure.

This PR expands deep into repeated array normal forms. It changes the oracle, its replay registration, and its coverage record. It does not change production code.

What the oracle checks

The equal-pair generator uses both spellings of the same array. An adjacent-depth case checks that one missing array level remains unequal.

Collision cases compare symbols with the same description and Map, Set, and object values with similar contents. New cases vary later Map and Set entries and an enumerable array field. The tests check both equalHashValues and structuralIdentity when each call returns. Fixed cases also vary array subclasses, object prototypes, key order, and hidden symbols.

Both generated properties run fixed and seedless campaigns of 2,000 cases. The replay manifest accepts a seed and shrink path for either property.

Scope

The Set generator wraps its second member so JavaScript keeps both entries. It does not test native Set deduplication.

The RegExp generator uses numeric lastIndex values. Issue #2192 tracks a pre-existing collision for reference-valued lastIndex and its groupBy effect. That defect remains open. The incrementalization oracle owns the separate groupBy path.

Verification

  • Untouched main failed at seed 1158727847, path 255.
  • The focused oracle passes 20 tests. The reduced direct replay passes one case.
  • The old deep model fails after three fixed-seed cases. Removing the equivalent-spelling pair lets that wrong model pass both campaigns.
  • Four representation mutants and two collection-entry mutants fail the intended identity comparisons.
  • The @tanstack/db-ivm typecheck, ESLint, Prettier, and git diff --check pass.

Summary by CodeRabbit

  • Tests
    • Expanded structural-identity coverage for equivalent explicit-array and deep representations, enumerable array fields, symbols, and Maps, Sets, and objects.
    • Added pinned equal and unequal cases, plus seeded test campaigns and replay support for selected properties and cases.
  • Documentation
    • Added oracle review notes covering test scope, replay results, known exclusions, and a remaining issue with frozen RegExps that have object-valued lastIndex.
    1. changeset-bot[bot](GitHub profile, opens in a new tab)commented

      ⚠️ No Changeset found

      Latest commit: 0688c1b564d7a718f8a9c47304ede71ceaea6af0

      Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

      This PR includes no changesets

      When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

      Click here to learn what changesets are, and how to add one.

      Click here if you're a maintainer who wants to add a changeset to this PR

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: defaults
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 28a51257-61a2-423a-856a-ca91c3790eca
      📥 Commits

      Reviewing files that changed from the base of the PR and between abd040569f434b7d519fe8bdf23dbaa7b005fabf and 0688c1b564d7a718f8a9c47304ede71ceaea6af0.

      📒 Files selected for processing: 4
      • docs/contributing/oracle-coverage.md
      • docs/contributing/oracle-reviews/2026-10-14-ivm-structural-identity-normal-form.md
      • packages/db-ivm/tests/structural-identity-oracle.property.test.ts
      • packages/db/tests/oracle-config.ts
      🚧 Files skipped from review as they are similar to previous changes: 2
      • docs/contributing/oracle-coverage.md
      • docs/contributing/oracle-reviews/2026-10-14-ivm-structural-identity-normal-form.md

      Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

      📝 Walkthrough

      The structural-identity oracle model and property tests now cover additional representations and collision cases. Both property campaigns support configured replay. The oracle registry, replay manifest, and review documentation include the expanded coverage.

      Changes: Structural Identity Oracle

      Layer / File(s)Summary
      Identity model and collision coverage
      packages/db-ivm/tests/structural-identity-oracle.property.test.ts, docs/contributing/oracle-coverage.md, docs/contributing/oracle-reviews/*
      The test model expands deep nodes into repeated arrays and distinguishes symbols by leaf index. Generated and pinned cases cover enumerable array fields, multi-entry Maps and Sets, representation equivalence, and collisions. The documentation records the review scope, campaign evidence, and excluded inputs.
      Replay-aware property campaigns
      packages/db-ivm/tests/structural-identity-oracle.property.test.ts, packages/db/tests/oracle-config.ts, packages/db/tests/oracle-replay-manifest.ts
      Both properties read replay configuration and run a fixed-seed campaign when no seed is supplied. The registry and manifest map the structural-identity properties to the test file and replay test names.

      Priority: ⬇️ Low

      Estimated code review effort: 3 (Moderate) | ~20 minutes

      Change: Other

      Sequence Diagram(s)

      sequenceDiagram
        participant OracleRunner
        participant OracleReplayManifest
        participant readOracleRunConfig
        participant StructuralIdentityPropertyTests
        OracleRunner->>OracleReplayManifest: Resolve structural-identity property test name
        OracleRunner->>readOracleRunConfig: Read replay configuration
        readOracleRunConfig-->>StructuralIdentityPropertyTests: Provide configured replay selection
        OracleRunner->>StructuralIdentityPropertyTests: Run selected property campaign
      Merge Risk: ⚪ Minimal · up to 0688c

      The oracle coverage and replay changes are ready to merge after normal checks.

      Pre-merge checks: Passed 4 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Docstring CoverageWarningDocstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 3 files. (2 skipped: 2…Write docstrings for the functions missing them to satisfy the coverage threshold.
      Passed Passed checks: 4 passed
      Check nameStatusExplanation
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Title checkPassedThe title is concise, specific, and accurately describes the main change: repairing the structural identity oracle normal form.
      Description checkPassedThe description clearly explains the motivation, oracle changes, scope, verification, and lack of production-code changes. It does not use the template headings or include the checklist and release-im…
      Full details: Description check

      Explanation

      The description clearly explains the motivation, oracle changes, scope, verification, and lack of production-code changes. It does not use the template headings or include the checklist and release-impact checkboxes, but it provides the required change and verification details.

      Full details: Docstring Coverage

      Explanation

      Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 3 files. (2 skipped: 2 unsupported.)

      Resolution

      Write docstrings for the functions missing them to satisfy the coverage threshold.

      • Fix all pre-merge checks with AI
      ✨ Finishing Touches: 💡 1
      📝 Generate docstrings: 💡
      • Commit to this branch
      • Create a new PR
      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    3. github-actions[bot](GitHub profile, opens in a new tab)commented

      Size Change: 0 B

      Total Size: 217 kB

      ℹ️ View Unchanged
      FilenameSize
      packages/db/dist/esm/client.js4.22 kB
      packages/db/dist/esm/collection-options-brand.js219 B
      packages/db/dist/esm/collection-options.js258 B
      packages/db/dist/esm/collection/change-events.js1.76 kB
      packages/db/dist/esm/collection/changes.js2.96 kB
      packages/db/dist/esm/collection/cleanup-queue.js901 B
      packages/db/dist/esm/collection/config-errors.js547 B
      packages/db/dist/esm/collection/events.js481 B
      packages/db/dist/esm/collection/index.js5.27 kB
      packages/db/dist/esm/collection/indexes.js2.3 kB
      packages/db/dist/esm/collection/lifecycle.js2.94 kB
      packages/db/dist/esm/collection/mutations.js2.99 kB
      packages/db/dist/esm/collection/state.js7.16 kB
      packages/db/dist/esm/collection/subscription.js8.9 kB
      packages/db/dist/esm/collection/sync.js5.4 kB
      packages/db/dist/esm/collection/validate-config.js1.17 kB
      packages/db/dist/esm/deferred.js207 B
      packages/db/dist/esm/error-message.js642 B
      packages/db/dist/esm/errors.js6.53 kB
      packages/db/dist/esm/event-emitter.js1.06 kB
      packages/db/dist/esm/index.js4.52 kB
      packages/db/dist/esm/indexed-db-wrapper.js1.91 kB
      packages/db/dist/esm/indexed-db.js3.7 kB
      packages/db/dist/esm/indexes/auto-index.js926 B
      packages/db/dist/esm/indexes/base-index.js1.92 kB
      packages/db/dist/esm/indexes/basic-index.js1.93 kB
      packages/db/dist/esm/indexes/btree-index.js1.62 kB
      packages/db/dist/esm/indexes/index-registry.js916 B
      packages/db/dist/esm/indexes/reverse-index.js1.01 kB
      packages/db/dist/esm/live-query-adapter.js338 B
      packages/db/dist/esm/live-query-observer.js4.8 kB
      packages/db/dist/esm/live-query-options.js1.41 kB
      packages/db/dist/esm/live-query-window-controller.js4.27 kB
      packages/db/dist/esm/local-only.js1.08 kB
      packages/db/dist/esm/local-storage.js3.93 kB
      packages/db/dist/esm/optimistic-action.js359 B
      packages/db/dist/esm/paced-mutations.js1.11 kB
      packages/db/dist/esm/persisted-readiness.js195 B
      packages/db/dist/esm/proxy.js3.51 kB
      packages/db/dist/esm/query/builder/clone-query.js849 B
      packages/db/dist/esm/query/builder/functions.js1.56 kB
      packages/db/dist/esm/query/builder/index.js7.48 kB
      packages/db/dist/esm/query/builder/query-ir.js312 B
      packages/db/dist/esm/query/builder/ref-proxy-identity.js292 B
      packages/db/dist/esm/query/builder/ref-proxy.js1.67 kB
      packages/db/dist/esm/query/builder/wrapper-identity.js221 B
      packages/db/dist/esm/query/compiler/evaluators.js2.51 kB
      packages/db/dist/esm/query/compiler/expressions.js603 B
      packages/db/dist/esm/query/compiler/group-by.js4.48 kB
      packages/db/dist/esm/query/compiler/index.js10.3 kB
      packages/db/dist/esm/query/compiler/joins.js3.42 kB
      packages/db/dist/esm/query/compiler/lazy-targets.js1.11 kB
      packages/db/dist/esm/query/compiler/order-by.js2.26 kB
      packages/db/dist/esm/query/compiler/parent-routes.js319 B
      packages/db/dist/esm/query/compiler/query-equivalence.js568 B
      packages/db/dist/esm/query/compiler/route-metadata.js1.24 kB
      packages/db/dist/esm/query/compiler/select.js1.5 kB
      packages/db/dist/esm/query/effect.js5.36 kB
      packages/db/dist/esm/query/equality-conjunct.js486 B
      packages/db/dist/esm/query/equality-value-identity.js735 B
      packages/db/dist/esm/query/expression-helpers.js1.61 kB
      packages/db/dist/esm/query/ir-stable-identity.js4.2 kB
      packages/db/dist/esm/query/ir.js2.2 kB
      packages/db/dist/esm/query/join-conditions.js257 B
      packages/db/dist/esm/query/live-query-collection.js391 B
      packages/db/dist/esm/query/live/bucket-facade-adapter.js3.17 kB
      packages/db/dist/esm/query/live/collection-config-builder.js6.84 kB
      packages/db/dist/esm/query/live/collection-registry.js264 B
      packages/db/dist/esm/query/live/collection-subscriber.js2.28 kB
      packages/db/dist/esm/query/live/graph-scheduler.js305 B
      packages/db/dist/esm/query/live/internal.js145 B
      packages/db/dist/esm/query/live/materialized-pipeline.js2.39 kB
      packages/db/dist/esm/query/live/ordered-source-loader.js5.35 kB
      packages/db/dist/esm/query/live/subset-demand-controller.js1.73 kB
      packages/db/dist/esm/query/live/utils.js1.35 kB
      packages/db/dist/esm/query/optimizer.js2.95 kB
      packages/db/dist/esm/query/pooled-live-query.js4.13 kB
      packages/db/dist/esm/query/query-once.js359 B
      packages/db/dist/esm/query/runtime-reference-identity.js630 B
      packages/db/dist/esm/query/subset-dedupe.js493 B
      packages/db/dist/esm/scheduler.js1.23 kB
      packages/db/dist/esm/SortedMap.js1.6 kB
      packages/db/dist/esm/strategies/commit-completion.js156 B
      packages/db/dist/esm/strategies/debounceStrategy.js658 B
      packages/db/dist/esm/strategies/queueStrategy.js523 B
      packages/db/dist/esm/strategies/serial-pacer.js486 B
      packages/db/dist/esm/strategies/throttleStrategy.js738 B
      packages/db/dist/esm/sync-persistence.js626 B
      packages/db/dist/esm/sync-receipt.js211 B
      packages/db/dist/esm/transaction-commit-work.js351 B
      packages/db/dist/esm/transactions.js4.61 kB
      packages/db/dist/esm/utils.js1.67 kB
      packages/db/dist/esm/utils/array-utils.js270 B
      packages/db/dist/esm/utils/browser-polyfills.js304 B
      packages/db/dist/esm/utils/btree.js3.02 kB
      packages/db/dist/esm/utils/callbacks.js174 B
      packages/db/dist/esm/utils/comparison.js1.94 kB
      packages/db/dist/esm/utils/cursor.js753 B
      packages/db/dist/esm/utils/error.js262 B
      packages/db/dist/esm/utils/get-or-create.js155 B
      packages/db/dist/esm/utils/index-optimization.js2.43 kB
      packages/db/dist/esm/utils/source-record.js140 B
      packages/db/dist/esm/utils/type-guards.js230 B
      packages/db/dist/esm/utils/uuid.js530 B
      packages/db/dist/esm/virtual-props.js413 B
      packages/react-db/dist/esm/DbProvider.js317 B
      packages/react-db/dist/esm/development.js190 B
      packages/react-db/dist/esm/HydrationBoundary.js263 B
      packages/react-db/dist/esm/index.js330 B
      packages/react-db/dist/esm/live-query-internals.js282 B
      packages/react-db/dist/esm/source-id-bindings.js746 B
      packages/react-db/dist/esm/useLiveInfiniteQuery.js2.15 kB
      packages/react-db/dist/esm/useLiveQuery.js3.34 kB
      packages/react-db/dist/esm/useLiveQueryEffect.js504 B
      packages/react-db/dist/esm/useLiveSuspenseQuery.js1.33 kB
      packages/react-db/dist/esm/usePacedMutations.js429 B
      compressed-size-action::db-and-react-package-size
    4. pkg-pr-new[bot](GitHub profile, opens in a new tab)commented
      More templates

      @tanstack/angular-db

      npm i https://pkg.pr.new/@tanstack/angular-db@2153

      @tanstack/browser-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/browser-db-sqlite-persistence@2153

      @tanstack/capacitor-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/capacitor-db-sqlite-persistence@2153

      @tanstack/cloudflare-durable-objects-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/cloudflare-durable-objects-db-sqlite-persistence@2153

      @tanstack/db

      npm i https://pkg.pr.new/@tanstack/db@2153

      @tanstack/db-ivm

      npm i https://pkg.pr.new/@tanstack/db-ivm@2153

      @tanstack/db-sqlite-persistence-core

      npm i https://pkg.pr.new/@tanstack/db-sqlite-persistence-core@2153

      @tanstack/electric-db-collection

      npm i https://pkg.pr.new/@tanstack/electric-db-collection@2153

      @tanstack/electron-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/electron-db-sqlite-persistence@2153

      @tanstack/expo-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/expo-db-sqlite-persistence@2153

      @tanstack/node-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/node-db-sqlite-persistence@2153

      @tanstack/offline-transactions

      npm i https://pkg.pr.new/@tanstack/offline-transactions@2153

      @tanstack/powersync-db-collection

      npm i https://pkg.pr.new/@tanstack/powersync-db-collection@2153

      @tanstack/query-db-collection

      npm i https://pkg.pr.new/@tanstack/query-db-collection@2153

      @tanstack/react-db

      npm i https://pkg.pr.new/@tanstack/react-db@2153

      @tanstack/react-native-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/react-native-db-sqlite-persistence@2153

      @tanstack/react-router-with-db

      npm i https://pkg.pr.new/@tanstack/react-router-with-db@2153

      @tanstack/rxdb-db-collection

      npm i https://pkg.pr.new/@tanstack/rxdb-db-collection@2153

      @tanstack/solid-db

      npm i https://pkg.pr.new/@tanstack/solid-db@2153

      @tanstack/svelte-db

      npm i https://pkg.pr.new/@tanstack/svelte-db@2153

      @tanstack/tauri-db-sqlite-persistence

      npm i https://pkg.pr.new/@tanstack/tauri-db-sqlite-persistence@2153

      @tanstack/trailbase-db-collection

      npm i https://pkg.pr.new/@tanstack/trailbase-db-collection@2153

      @tanstack/vue-db

      npm i https://pkg.pr.new/@tanstack/vue-db@2153

      commit: 0688c1b

    5. github-actions[bot](GitHub profile, opens in a new tab)commented

      Incremental update benchmark

      Comparing 1356b2f9 (this PR) against 2c83fdc5 (base). Write times are per-write medians over 100 iterations (20 warmup writes). Cold hydrate is one timed first load of each query.

      Overall median write time vs base: 1.00× · cold hydrate time: 0.99× (geometric mean of per-case ratios; lower is faster).

      Writes: 4 regression(s), 2 improvement(s) (threshold: ±20% and >0.05ms).

      Cold hydrate: 1 regression(s), 1 improvement(s) (threshold: ±50% and >5ms).

      Per-case flags are noisy on shared runners. Read the geometric means first.

      Writes

      QueryΔ median write time (geomean)Best caseWorst caseFlags
      list: newest 50 open+3.2%-4.1%+36.6%1 🔴
      list + author-0.1%-8.0%+16.2%—
      list + comment count-6.3%-24.7%+35.4%1 🔴 1 🟢
      list + 3 recent comments-2.6%-21.0%+75.0%1 🔴 1 🟢
      issue detail + comments+2.1%-9.1%+93.0%1 🔴

      Cold hydrate

      QueryΔ cold hydrate time (geomean)Best caseWorst caseFlags
      list: newest 50 open-1.9%-41.0%+62.0%—
      list + author+1.8%-35.0%+33.8%—
      list + comment count-19.6%-81.1%+31.1%1 🟢
      list + 3 recent comments+4.1%-39.3%+233.9%1 🔴
      issue detail + comments+13.4%-10.2%+56.8%—

      Each row aggregates the 14.4 scale/index/write-mode configurations of that query; per-configuration tables below.

      100 rows/collection | source indexes: none | synced writes — geomean 0.95×, cold 1.00×, 2 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.218ms0.217ms-0.6%0.349ms0.346ms-0.7%13.014ms13.380ms+2.8%
      list: newest 50 open0.438ms0.526ms+20.2%0.688ms0.833ms+21.2%🔴3.140ms2.987ms-4.9%
      list + author0.200ms0.198ms-1.0%0.329ms0.333ms+1.3%8.209ms9.079ms+10.6%
      list + comment count0.423ms0.343ms-18.8%0.683ms0.534ms-21.8%12.583ms12.029ms-4.4%
      list + 3 recent comments0.285ms0.227ms-20.4%0.497ms0.396ms-20.3%🟢10.498ms10.059ms-4.2%
      issue detail + comments0.159ms0.154ms-2.8%0.286ms0.212ms-26.1%1.388ms1.442ms+3.9%
      100 rows/collection | source indexes: none | optimistic writes — geomean 0.95×, cold 0.91×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.138ms0.136ms-1.9%0.226ms0.205ms-9.6%1.852ms1.681ms-9.2%
      list: newest 50 open0.092ms0.092ms-0.2%0.166ms0.176ms+6.6%2.817ms1.900ms-32.5%
      list + author0.175ms0.168ms-4.5%0.276ms0.300ms+8.4%5.076ms3.300ms-35.0%
      list + comment count0.229ms0.226ms-1.4%0.383ms0.381ms-0.4%3.623ms3.486ms-3.8%
      list + 3 recent comments0.167ms0.132ms-21.0%0.268ms0.255ms-4.6%6.905ms7.656ms+10.9%
      issue detail + comments0.157ms0.155ms-0.7%0.240ms0.214ms-10.6%0.978ms1.340ms+37.1%
      100 rows/collection | source indexes: manual | synced writes — geomean 0.99×, cold 0.90×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.105ms0.143ms+36.6%0.152ms0.238ms+57.1%2.787ms3.115ms+11.8%
      list: newest 50 open0.420ms0.425ms+1.1%0.647ms0.725ms+12.1%1.181ms1.156ms-2.1%
      list + author0.134ms0.137ms+1.9%0.233ms0.238ms+2.1%3.044ms2.523ms-17.1%
      list + comment count0.323ms0.243ms-24.7%0.459ms0.437ms-4.7%🟢4.827ms3.096ms-35.9%
      list + 3 recent comments0.171ms0.161ms-5.5%0.303ms0.210ms-30.8%4.273ms4.307ms+0.8%
      issue detail + comments0.125ms0.120ms-4.0%0.240ms0.164ms-31.9%0.553ms0.496ms-10.2%
      100 rows/collection | source indexes: manual | optimistic writes — geomean 1.00×, cold 1.07×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.105ms0.105ms-0.4%0.155ms0.154ms-0.4%1.160ms1.218ms+5.0%
      list: newest 50 open0.085ms0.084ms-0.9%0.148ms0.173ms+16.2%1.011ms1.017ms+0.5%
      list + author0.135ms0.149ms+10.5%0.183ms0.251ms+37.4%2.334ms2.682ms+14.9%
      list + comment count0.213ms0.197ms-7.5%0.329ms0.327ms-0.8%4.638ms4.054ms-12.6%
      list + 3 recent comments0.126ms0.127ms+0.7%0.214ms0.228ms+6.7%4.772ms4.658ms-2.4%
      issue detail + comments0.104ms0.103ms-0.6%0.148ms0.168ms+13.4%0.361ms0.532ms+47.4%
      1,000 rows/collection | source indexes: none | synced writes — geomean 1.26×, cold 1.05×, 2 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.083ms0.084ms+0.6%0.172ms0.170ms-0.8%9.764ms7.438ms-23.8%
      list: newest 50 open1.088ms1.127ms+3.6%2.001ms2.102ms+5.0%6.009ms5.751ms-4.3%
      list + author0.107ms0.104ms-2.6%0.196ms0.136ms-30.5%18.359ms18.592ms+1.3%
      list + comment count0.189ms0.218ms+15.4%0.268ms0.457ms+70.3%9.517ms9.300ms-2.3%
      list + 3 recent comments0.124ms0.217ms+75.0%0.179ms0.328ms+83.4%🔴9.924ms11.738ms+18.3%
      issue detail + comments0.099ms0.191ms+93.0%0.192ms0.275ms+42.9%🔴1.120ms1.756ms+56.8%
      1,000 rows/collection | source indexes: none | optimistic writes — geomean 0.99×, cold 0.94×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.130ms0.144ms+10.4%0.211ms0.210ms-0.8%7.789ms5.789ms-25.7%
      list: newest 50 open0.073ms0.091ms+24.4%0.162ms0.124ms-23.3%5.057ms8.195ms+62.0%
      list + author0.135ms0.124ms-8.0%0.229ms0.216ms-5.7%19.466ms24.349ms+25.1%
      list + comment count0.199ms0.166ms-16.8%0.279ms0.208ms-25.5%11.539ms8.304ms-28.0%
      list + 3 recent comments0.113ms0.107ms-5.4%0.174ms0.146ms-15.7%15.239ms9.258ms-39.3%
      issue detail + comments0.104ms0.096ms-7.8%0.131ms0.127ms-2.7%1.229ms1.277ms+3.9%
      1,000 rows/collection | source indexes: manual | synced writes — geomean 0.95×, cold 0.89×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.077ms0.077ms+0.4%0.107ms0.099ms-7.2%1.174ms1.049ms-10.7%
      list: newest 50 open0.317ms0.318ms+0.4%0.545ms0.569ms+4.5%1.327ms0.783ms-41.0%
      list + author0.114ms0.113ms-1.0%0.216ms0.213ms-1.4%1.738ms1.763ms+1.5%
      list + comment count0.223ms0.191ms-14.0%0.296ms0.233ms-21.4%2.854ms2.277ms-20.2%
      list + 3 recent comments0.146ms0.135ms-7.9%0.259ms0.179ms-30.7%5.670ms5.363ms-5.4%
      issue detail + comments0.106ms0.097ms-8.7%0.136ms0.125ms-8.3%0.328ms0.416ms+27.1%
      1,000 rows/collection | source indexes: manual | optimistic writes — geomean 0.96×, cold 1.02×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.090ms0.089ms-1.4%0.157ms0.159ms+1.9%0.740ms0.770ms+4.2%
      list: newest 50 open0.072ms0.072ms+0.5%0.100ms0.124ms+24.2%0.779ms0.891ms+14.5%
      list + author0.120ms0.115ms-4.0%0.209ms0.149ms-28.5%2.035ms1.881ms-7.5%
      list + comment count0.191ms0.170ms-11.2%0.226ms0.211ms-6.5%2.725ms2.981ms+9.4%
      list + 3 recent comments0.120ms0.114ms-5.1%0.148ms0.148ms+0.1%3.593ms3.399ms-5.4%
      issue detail + comments0.105ms0.104ms-0.3%0.143ms0.184ms+28.7%0.365ms0.369ms+1.1%
      10,000 rows/collection | source indexes: none | synced writes — geomean 1.06×, cold 1.09×, 1 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.075ms0.073ms-2.3%0.102ms0.102ms+0.1%69.168ms67.171ms-2.9%
      list: newest 50 open10.105ms10.814ms+7.0%11.036ms11.474ms+4.0%65.236ms72.547ms+11.2%
      list + author0.110ms0.128ms+16.2%0.197ms0.211ms+6.9%202.597ms203.311ms+0.4%
      list + comment count0.205ms0.278ms+35.4%0.341ms0.348ms+1.8%🔴77.207ms101.199ms+31.1%
      list + 3 recent comments0.133ms0.125ms-5.9%0.233ms0.193ms-17.2%76.010ms83.109ms+9.3%
      issue detail + comments0.100ms0.091ms-9.1%0.135ms0.121ms-10.8%4.873ms5.316ms+9.1%
      10,000 rows/collection | source indexes: none | optimistic writes — geomean 0.96×, cold 0.98×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.092ms0.092ms-0.4%0.158ms0.161ms+1.5%63.677ms62.313ms-2.1%
      list: newest 50 open0.060ms0.060ms+0.8%0.093ms0.097ms+4.0%64.763ms66.261ms+2.3%
      list + author0.119ms0.118ms-1.2%0.152ms0.148ms-2.6%193.809ms188.287ms-2.8%
      list + comment count0.215ms0.193ms-10.1%0.259ms0.311ms+19.9%77.675ms67.693ms-12.9%
      list + 3 recent comments0.113ms0.106ms-6.5%0.161ms0.134ms-16.7%70.559ms71.151ms+0.8%
      issue detail + comments0.103ms0.098ms-5.0%0.138ms0.128ms-7.4%4.841ms4.936ms+2.0%
      10,000 rows/collection | source indexes: manual | synced writes — geomean 0.96×, cold 1.01×
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.102ms0.098ms-4.1%0.154ms0.175ms+13.5%2.160ms2.284ms+5.8%
      list: newest 50 open0.958ms0.944ms-1.5%1.409ms1.213ms-13.9%1.809ms1.760ms-2.7%
      list + author0.105ms0.100ms-4.8%0.144ms0.138ms-4.3%2.664ms3.564ms+33.8%
      list + comment count0.220ms0.214ms-2.7%0.392ms0.260ms-33.8%3.732ms4.004ms+7.3%
      list + 3 recent comments0.154ms0.140ms-9.3%0.196ms0.227ms+16.0%7.533ms4.946ms-34.3%
      issue detail + comments0.113ms0.113ms+0.6%0.164ms0.186ms+13.6%0.583ms0.652ms+11.8%
      10,000 rows/collection | source indexes: manual | optimistic writes — geomean 0.99×, cold 1.00×, 2 change(s)
      QueryBase medianPR medianΔ medianBase p95PR p95Δ p95Base coldPR coldΔ cold
      list: newest 50 open0.103ms0.101ms-1.8%0.195ms0.183ms-6.1%1.620ms2.505ms+54.6%
      list: newest 50 open0.080ms0.077ms-3.5%0.136ms0.114ms-16.3%1.638ms1.570ms-4.2%
      list + author0.121ms0.120ms-0.4%0.149ms0.154ms+2.9%2.749ms3.220ms+17.1%
      list + comment count0.244ms0.230ms-5.8%0.286ms0.275ms-3.9%18.360ms3.469ms-81.1%🟢
      list + 3 recent comments0.130ms0.137ms+5.9%0.189ms0.271ms+43.6%4.529ms15.123ms+233.9%🔴
      issue detail + comments0.114ms0.113ms-0.6%0.147ms0.142ms-3.2%0.587ms0.539ms-8.2%
      Runner: node v24.8.0, linux 6.17.0-1022-azure, AMD EPYC 7763 64-Core Processor. Timings on shared CI runners are noisy; treat small deltas as indicative only.
    6. KyleAMathews merged this7d8f340

    7. KyleAMathews closed this

Sign in to join this conversation.