diff options
author | Erik Johnston <erik@matrix.org> | 2016-10-31 16:07:45 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-10-31 16:07:45 +0000 |
commit | 4c3eb14d6884cea186614de501179c2dc8292c90 (patch) | |
tree | e1bc3783b9057ce658d2b228960f6ab14d8c605c /synapse/storage | |
parent | Merge pull request #1184 from matrix-org/paul/metrics (diff) | |
download | synapse-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 'synapse/storage')
-rw-r--r-- | synapse/storage/transactions.py | 2 |
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) |