1
0

Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes

This commit is contained in:
Erik Johnston
2017-09-28 14:27:43 +01:00
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -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):
@@ -34,3 +34,5 @@ DROP TABLE local_media_repository_url_cache;
ALTER TABLE local_media_repository_url_cache_new RENAME TO local_media_repository_url_cache;
CREATE INDEX local_media_repository_url_cache_expires_idx ON local_media_repository_url_cache(expires_ts);
CREATE INDEX local_media_repository_url_cache_by_url_download_ts ON local_media_repository_url_cache(url, download_ts);
CREATE INDEX local_media_repository_url_cache_media_idx ON local_media_repository_url_cache(media_id);