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.
pull/1188/head
Erik Johnston 2016-10-31 16:07:45 +00:00
parent f9d5b60a24
commit 4c3eb14d68
1 changed files with 1 additions and 1 deletions

View File

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