summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-09-28 14:27:27 +0100
committerErik Johnston <erik@matrix.org>2017-09-28 14:27:27 +0100
commit768f00dedbee83dd6bfb7c37bfadc511f7aeb10e (patch)
tree8c1744f3e385ce6c772738e25aeae7350db48f38 /synapse
parentAdd old indices (diff)
downloadsynapse-768f00dedbee83dd6bfb7c37bfadc511f7aeb10e.tar.xz
Up the limits on number of url cache entries to delete at one time
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/media_repository.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/media_repository.py b/synapse/storage/media_repository.py
index 1f2eab98e3..7110a71279 100644
--- a/synapse/storage/media_repository.py
+++ b/synapse/storage/media_repository.py
@@ -244,7 +244,7 @@ class MediaRepositoryStore(SQLBaseStore):
             "SELECT media_id FROM local_media_repository_url_cache"
             " WHERE expires_ts < ?"
             " ORDER BY expires_ts ASC"
-            " LIMIT 100"
+            " LIMIT 500"
         )
 
         def _get_expired_url_cache_txn(txn):
@@ -269,7 +269,7 @@ class MediaRepositoryStore(SQLBaseStore):
             "SELECT media_id FROM local_media_repository"
             " WHERE created_ts < ? AND url_cache IS NOT NULL"
             " ORDER BY created_ts ASC"
-            " LIMIT 100"
+            " LIMIT 500"
         )
 
         def _get_url_cache_media_before_txn(txn):