Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Up the limits on number of url cache entries to delete at one time
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Sep 28, 2017
1 parent 4dc07e9 commit 768f00d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/media_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def get_expired_url_cache(self, now_ts):
"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):
Expand All @@ -269,7 +269,7 @@ def get_url_cache_media_before(self, before_ts):
"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):
Expand Down

0 comments on commit 768f00d

Please sign in to comment.