Skip to content

ConversationStore.Migration: Use fewer connections while checking for pending deletes#5234

Open
akshaymankar wants to merge 3 commits into
developfrom
mig-cleanup-use-fewer-conns
Open

ConversationStore.Migration: Use fewer connections while checking for pending deletes#5234
akshaymankar wants to merge 3 commits into
developfrom
mig-cleanup-use-fewer-conns

Conversation

@akshaymankar
Copy link
Copy Markdown
Member

Previous code was using 1 session per user id and conv id.

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

… pending deletes

Previous code was using 1 session per user id and conv id.
@akshaymankar akshaymankar requested review from a team as code owners May 20, 2026 19:09
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label May 20, 2026
@akshaymankar akshaymankar changed the title ConversationStore.Migration: Use fewer connections while checking forpending deletes ConversationStore.Migration: Use fewer connections while checking for pending deletes May 20, 2026
pendingUserIds <- Session.statement (DeleteUser, userIds) filterPendingDeletes
pure (pendingConvIds, pendingUserIds)
cleanupConvs pendingConvIds
cleanupUsers pendingUserIds
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.

AFAICT markDeletionComplete is missing, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants