mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Up the limits on number of url cache entries to delete at one time
This commit is contained in:
parent
4dc07e93a8
commit
768f00dedb
@ -244,7 +244,7 @@ class MediaRepositoryStore(SQLBaseStore):
|
|||||||
"SELECT media_id FROM local_media_repository_url_cache"
|
"SELECT media_id FROM local_media_repository_url_cache"
|
||||||
" WHERE expires_ts < ?"
|
" WHERE expires_ts < ?"
|
||||||
" ORDER BY expires_ts ASC"
|
" ORDER BY expires_ts ASC"
|
||||||
" LIMIT 100"
|
" LIMIT 500"
|
||||||
)
|
)
|
||||||
|
|
||||||
def _get_expired_url_cache_txn(txn):
|
def _get_expired_url_cache_txn(txn):
|
||||||
@ -269,7 +269,7 @@ class MediaRepositoryStore(SQLBaseStore):
|
|||||||
"SELECT media_id FROM local_media_repository"
|
"SELECT media_id FROM local_media_repository"
|
||||||
" WHERE created_ts < ? AND url_cache IS NOT NULL"
|
" WHERE created_ts < ? AND url_cache IS NOT NULL"
|
||||||
" ORDER BY created_ts ASC"
|
" ORDER BY created_ts ASC"
|
||||||
" LIMIT 100"
|
" LIMIT 500"
|
||||||
)
|
)
|
||||||
|
|
||||||
def _get_url_cache_media_before_txn(txn):
|
def _get_url_cache_media_before_txn(txn):
|
||||||
|
Loading…
Reference in New Issue
Block a user