-
- Downloads
Use a sequence to generate AS transaction IDs, drop `last_txn` AS state (#12209)
Switching to a sequence means there's no need to track `last_txn` on the AS state table to generate new TXN IDs. This also means that there is no longer contention between the AS scheduler and AS handler on updates to the `application_services_state` table, which will prevent serialization errors during the complete AS txn transaction.
Showing
- changelog.d/12209.misc 1 addition, 0 deletionschangelog.d/12209.misc
- docs/upgrade.md 13 additions, 0 deletionsdocs/upgrade.md
- synapse/storage/databases/main/appservice.py 19 additions, 43 deletionssynapse/storage/databases/main/appservice.py
- synapse/storage/schema/__init__.py 4 additions, 1 deletionsynapse/storage/schema/__init__.py
- synapse/storage/schema/main/delta/69/01as_txn_seq.py 44 additions, 0 deletionssynapse/storage/schema/main/delta/69/01as_txn_seq.py
- tests/storage/test_appservice.py 2 additions, 69 deletionstests/storage/test_appservice.py
Loading
Please register or sign in to comment