Skip to content

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

Merged
akshaymankar merged 3 commits into
developfrom
mig-cleanup-use-fewer-conns
Jun 1, 2026
Merged

ConversationStore.Migration: Use fewer connections while checking for pending deletes#5234
akshaymankar merged 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?

@akshaymankar
akshaymankar requested a review from battermann June 1, 2026 13:00

@battermann battermann 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.

LGTM

@akshaymankar
akshaymankar merged commit 16f1182 into develop Jun 1, 2026
10 checks passed
@akshaymankar
akshaymankar deleted the mig-cleanup-use-fewer-conns branch June 1, 2026 13:04
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