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/endpoints
Joseph Schorr 7a548ea101 Fix queries for repository list popularity and action count
Before this change, we used extremely inefficient outer joins as part of a single query of lookup, which was spiking our CPU usage to nearly 100% on the query. We now issue two separate queries for popularity and action account, by doing a lookup of the previously found IDs. Interestingly enough, because of the way the queries are now written, MySQL can actually do both queries *directly from the indicies*, which means they each occur in approx 20ms!

Verified by local tests, postgres tests, and testing on staging with monitoring of our CPU usage during lookup
2015-07-17 00:08:27 +03:00
..
api Fix queries for repository list popularity and action count 2015-07-17 00:08:27 +03:00
__init__.py Refactor the code into modules, it was getting unweildy. 2013-09-25 12:45:12 -04:00
bitbuckettrigger.py Work in progress: bitbucket support 2015-04-24 18:36:48 -04:00
building.py Fix build ID key on build queued event 2015-07-01 17:48:43 +03:00
common.py Make the scopes dynamic based on app config. 2015-07-15 18:13:15 -04:00
csrf.py Add ability to download system logs 2014-12-23 14:01:00 -05:00
decorated.py Add proper error handling when the config volume is mounted in a read-only state. 2015-04-02 18:54:09 -04:00
decorators.py Add a test to verify that all important blueprints have all their methods decorated 2015-06-02 15:56:44 -04:00
githubtrigger.py New layout cleanup: Remove second GH trigger path 2015-06-29 12:18:21 +03:00
gitlabtrigger.py Get basic support for GitLab working in the UI 2015-05-03 09:58:48 -07:00
index.py Remove ability to create Quay users from the Docker CLI 2015-06-22 17:12:05 -04:00
notificationevent.py Add more build information to the events and have better messaging 2015-06-16 23:16:36 -04:00
notificationhelper.py Strip whitespace from ALL the things. 2014-11-24 16:07:38 -05:00
notificationmethod.py Add more build information to the events and have better messaging 2015-06-16 23:16:36 -04:00
oauthlogin.py Merge branch 'master' into gitlab 2015-05-03 12:13:09 -04:00
realtime.py Add a try-catch around the realtime logs stuff 2015-02-17 19:18:56 -05:00
registry.py Add a test to verify that all important blueprints have all their methods decorated 2015-06-02 15:56:44 -04:00
tags.py Add a test to verify that all important blueprints have all their methods decorated 2015-06-02 15:56:44 -04:00
trackhelper.py trackhelper: add user-agent to analytics 2015-03-06 12:02:40 -05:00
trigger.py NPE fix 2015-06-28 10:44:58 +03:00
verbs.py Add a feature flag for disabling unauthenticated access to the registry in its entirety. 2015-05-19 17:52:44 -04:00
web.py Clean up headers and whitespace. 2015-06-23 17:10:03 -04:00
webhooks.py Fix bugs with the custom git trigger and make error reporting better 2015-05-10 13:38:47 -04:00