Optimize listing of logs by changing to bucket by datetime, over which we have an index

This commit is contained in:
Joseph Schorr 2019-01-28 17:16:52 -05:00
parent 9f09d68ad8
commit d4c74bc1d3
3 changed files with 46 additions and 27 deletions

View file

@ -89,7 +89,7 @@ class PreOCIModel(RepositoryDataInterface):
kind_filter=repo_kind)
repos, next_page_token = model.modelutil.paginate_query(repo_query, limit=REPOS_PER_PAGE,
id_alias='rid')
sort_field_name='rid')
# Collect the IDs of the repositories found for subequent lookup of popularity
# and/or last modified.