0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-19 08:24:25 +01:00

Increase batching of sent transaction inserts

This should further reduce the number of individual inserts,
transactions and updates that are required for keeping sent_transactions
up to date.
This commit is contained in:
Erik Johnston 2016-10-31 16:07:45 +00:00
parent f9d5b60a24
commit 4c3eb14d68

View file

@ -62,7 +62,7 @@ class TransactionStore(SQLBaseStore):
self.last_transaction = {}
reactor.addSystemEventTrigger("before", "shutdown", self._persist_in_mem_txns)
self._clock.looping_call(self._persist_in_mem_txns, 1000)
self._clock.looping_call(self._persist_in_mem_txns, 10 * 1000)
self._clock.looping_call(self._cleanup_transactions, 30 * 60 * 1000)