mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 09:10:55 -05:00
Move the event storage into a single transaction
This commit is contained in:
parent
1379dcae6f
commit
4b2ad549d5
6 changed files with 60 additions and 48 deletions
|
|
@ -24,8 +24,8 @@ import json
|
|||
|
||||
class FeedbackStore(SQLBaseStore):
|
||||
|
||||
def _store_feedback(self, event):
|
||||
return self._simple_insert("feedback", {
|
||||
def _store_feedback_txn(self, txn, event):
|
||||
self._simple_insert_txn(txn, "feedback", {
|
||||
"event_id": event.event_id,
|
||||
"feedback_type": event.feedback_type,
|
||||
"room_id": event.room_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue