Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Fix mxid bloat #1676

Draft
wants to merge 2 commits into
base: release-0.14
Choose a base branch
from
Draft

Fix mxid bloat #1676

wants to merge 2 commits into from

Conversation

cevian
Copy link
Contributor

@cevian cevian commented Sep 27, 2022

ON CONFLICT clauses can cause row locks, which uses multitransact mxids. Therefore, avoid using long transactions with ON CONFLICT.

This patch forces all inserts with ON CONFLICT to commit metrics in separate transactions.

Merge requirements

Please take into account the following non-code changes that you may need to make with your PR:

  • CHANGELOG entry for user-facing changes
  • Updated the relevant documentation

@cevian cevian force-pushed the mxid_fix branch 2 times, most recently from b8d82f1 to 34d5e87 Compare September 27, 2022 19:18
ON CONFLICT clauses can cause row locks, which uses multitransact mxids.
Therefore, avoid using long transactions with ON CONFLICT.

This patch forces all inserts with ON CONFLICT to commit metrics in separate
transactions.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant