From 4c3eb14d6884cea186614de501179c2dc8292c90 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 31 Oct 2016 16:07:45 +0000 Subject: [PATCH] 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. --- synapse/storage/transactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/transactions.py b/synapse/storage/transactions.py index 5055c04b2..232ccb96e 100644 --- a/synapse/storage/transactions.py +++ b/synapse/storage/transactions.py @@ -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)