summary refs log tree commit diff
path: root/synapse/storage/transactions.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-10-31 16:07:45 +0000
committerErik Johnston <erik@matrix.org>2016-10-31 16:07:45 +0000
commit4c3eb14d6884cea186614de501179c2dc8292c90 (patch)
treee1bc3783b9057ce658d2b228960f6ab14d8c605c /synapse/storage/transactions.py
parentMerge pull request #1184 from matrix-org/paul/metrics (diff)
downloadsynapse-4c3eb14d6884cea186614de501179c2dc8292c90.tar.xz
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.
Diffstat (limited to '')
-rw-r--r--synapse/storage/transactions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/transactions.py b/synapse/storage/transactions.py
index 5055c04b24..232ccb96e1 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)