Skip to content

perf(db): index thread reply keyset pagination#1787

Open
tlongwell-block wants to merge 1 commit into
mainfrom
perci/thread-metadata-keyset-index
Open

perf(db): index thread reply keyset pagination#1787
tlongwell-block wants to merge 1 commit into
mainfrom
perci/thread-metadata-keyset-index

Conversation

@tlongwell-block

Copy link
Copy Markdown
Collaborator

Summary

  • add an additive migration for the thread reply keyset index
  • index (community_id, root_event_id, event_created_at, event_id) to match subtree filtering and pagination order
  • pin the migration's version and shape in the embedded migrator test

Test plan

  • cargo fmt --all -- --check
  • cargo test -p buzz-db migration::tests --lib (7 passed; Postgres integration test ignored by its existing annotation)
  • git diff --check

Note

The pre-push aggregate hook was run and all non-DB lanes passed, but its cargo nextest DB lane selected the hook's Rust 1.89 toolchain while the current sqlx 0.9.0 requires Rust 1.94. The directly invoked DB migration test above used the repo Hermit Rust 1.95 toolchain and passed.

Co-authored-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co>
@tlongwell-block tlongwell-block requested a review from a team as a code owner July 13, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant