This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/data/model
Joseph Schorr b5bb76cdea Optimize repository search by changing our lookup strategy
Previous to this change, repositories were looked up unfiltered in six different queries, and then filtered using the permissions model, which issued a query per repository found, making search incredibly slow. Instead, we now lookup a chunk of repositories unfiltered and then filter them via a single query to the database. By layering the filtering on top of the lookup, each as queries, we can minimize the number of queries necessary, without (at the same time) using a super expensive join.

Other changes:
- Remove the 5 page pre-lookup on V1 search and simply return that there is one more page available, until there isn't. While technically not correct, it is much more efficient, and no one should be using pagination with V1 search anyway.
- Remove the lookup for repos without entries in the RAC table. Instead, we now add a new RAC entry when the repository is created for *the day before*, with count 0, so that it is immediately searchable
- Remove lookup of results with a matching namespace; these aren't very relevant anyway, and it overly complicates sorting
2017-03-09 19:47:55 -05:00
..
__init__.py Handle IntegrityError in tag update code 2017-02-22 13:20:04 -05:00
_basequery.py Convert model to use moved prefix_search method 2017-01-31 11:38:31 -05:00
blob.py Implement V2 interfaces and remaining V1 interfaces 2016-09-26 14:49:04 -04:00
build.py Adding in cancel notifications 2016-11-30 14:38:34 -05:00
health.py Fix health check 2017-02-24 12:23:18 -05:00
image.py workers.securityworker: simplify min id 2017-03-03 14:51:18 -05:00
label.py Convert model to use moved prefix_search method 2017-01-31 11:38:31 -05:00
log.py Log more information to the action logs and display the namespaces for superusers 2017-02-14 14:55:24 -05:00
message.py Severity and Markdown support in MOTD 2017-01-18 16:55:32 -05:00
modelutil.py Fix pagination of repositories 2016-08-15 16:48:04 -04:00
notification.py Lots of smaller fixes: 2016-04-29 14:05:16 -04:00
oauth.py Add support for direct granting of OAuth tokens and add tests 2016-05-23 17:17:06 -04:00
organization.py More detailed namespace validation 2017-01-17 17:31:59 -05:00
permission.py Add repo permissions dialog for existing teams and robots 2016-08-22 14:43:12 -04:00
release.py Formatting and syntax improvements 2016-01-19 14:56:02 -05:00
repository.py Optimize repository search by changing our lookup strategy 2017-03-09 19:47:55 -05:00
service_keys.py Fix key server to not list expired keys 2016-05-03 17:58:47 -04:00
sqlalchemybridge.py Full text support in peewee 2017-01-31 11:38:31 -05:00
storage.py Garbage collection image+storage callback support 2016-12-22 14:27:42 -05:00
tag.py find work based on tag IDs rather than image IDs 2017-03-06 17:09:57 -05:00
team.py Catch team member invite missing exception 2017-02-22 13:18:22 -05:00
token.py Accidental refactor, split out legacy.py into separate sumodules and update all call sites. 2015-07-17 11:56:15 -04:00
user.py Implement new create and manager trigger UI 2017-02-28 16:51:42 -05:00