summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-05-20 17:56:10 +0100
committerDavid Baker <dave@matrix.org>2016-05-20 17:56:10 +0100
commitd4503e25ed01b6053bd5bb503f858a2ab934e350 (patch)
tree41889b6c26c4c155b7cf28a6f0a087c90891acba /synapse/storage/_base.py
parentOnly delete push actions after 30 days (diff)
downloadsynapse-d4503e25ed01b6053bd5bb503f858a2ab934e350.tar.xz
Make deleting push actions more efficient
There's no index on received_ts, so manually binary search using the stream_ordering index, and only update it once an hour.
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index e0d7098692..56a0dd80f3 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -153,7 +153,6 @@ class SQLBaseStore(object):
     def __init__(self, hs):
         self.hs = hs
         self._db_pool = hs.get_db_pool()
-        self._clock = hs.get_clock()
 
         self._previous_txn_total_time = 0
         self._current_txn_total_time = 0