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/util
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
..
config Fix typo 2017-02-24 12:23:18 -05:00
metrics feature(app.py): adding queue_metrics to queues 2017-02-14 16:01:28 -05:00
migrate Read the number of unscanned clair images from the block allocator 2017-02-21 19:13:51 -05:00
registry Fix docker versioning library to support new versioning scheme 2017-02-22 16:08:17 -05:00
saas Increase cloudwatch send timeout to reduce how often we hit the API 2017-02-01 13:09:00 -05:00
secscan Batch QSS notifications after initial scan 2017-03-01 15:42:49 -05:00
security DNS name check got reversed; breaks wildcards 2017-01-29 11:51:37 -05:00
test util.failover: re-raise exceptions on failure 2017-03-01 00:40:47 -05:00
vendor
__init__.py
asyncwrapper.py
backfillreplication.py
backoff.py
cache.py
canonicaljson.py
dict_wrappers.py
disableabuser.py Add tool for handling abusing users 2017-01-13 14:42:03 -05:00
dockerfileparse.py
dynamic.py
expiresdict.py
failover.py util.failover: re-raise exceptions on failure 2017-03-01 00:40:47 -05:00
generatepresharedkey.py
headers.py
http.py
imagetree.py
invoice.py
invoice.tmpl
itertoolrecipes.py Optimize repository search by changing our lookup strategy 2017-03-09 19:47:55 -05:00
jinjautil.py
label_validator.py
license.py Change entitlement sorting to sort *valid* entitlements by reverse expiration time 2017-02-15 14:31:24 -05:00
locking.py
morecollections.py
names.py Remove unicode before sending it to path parser 2017-02-22 13:21:12 -05:00
pagination.py
streamingjsonencoder.py
systemlogs.py
timedeltastring.py
useremails.py
validation.py Allow namespaces to be between 2 and 255 characters in length 2017-01-19 13:10:26 -05:00