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/api
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
..
__init__.py Delegated superuser API access 2015-06-30 11:08:26 +03:00
billing.py Merge pull request #28 from coreos-inc/swagger2 2015-06-29 12:18:10 -04:00
build.py Switch the Python side to Swagger v2 2015-05-14 16:47:38 -04:00
discovery.py Make the scopes dynamic based on app config. 2015-07-15 18:13:15 -04:00
image.py Switch the Python side to Swagger v2 2015-05-14 16:47:38 -04:00
logs.py Fix the API service to use the new Swagger description form 2015-06-22 15:13:26 -04:00
organization.py Add a secondary tab to Teams for managing org members 2015-07-02 17:06:36 +03:00
permission.py Have the fetch tag dialog show a warning for robot accounts without access 2015-07-01 19:37:52 +03:00
prototype.py Switch the Python side to Swagger v2 2015-05-14 16:47:38 -04:00
repoemail.py Switch the Python side to Swagger v2 2015-05-14 16:47:38 -04:00
repository.py Fix queries for repository list popularity and action count 2015-07-17 00:08:27 +03:00
repositorynotification.py Switch the Python side to Swagger v2 2015-05-14 16:47:38 -04:00
repotoken.py Switch the Python side to Swagger v2 2015-05-14 16:47:38 -04:00
robot.py Merge pull request #28 from coreos-inc/swagger2 2015-06-29 12:18:10 -04:00
search.py Switch the Python side to Swagger v2 2015-05-14 16:47:38 -04:00
subscribe.py Switch the Python side to Swagger v2 2015-05-14 16:47:38 -04:00
suconfig.py Merge pull request #192 from coreos-inc/sqlssl 2015-06-29 13:33:31 -04:00
superuser.py Merge pull request #136 from coreos-inc/syslogviewfix 2015-07-15 18:22:23 -04:00
tag.py Add pagination support to tag history API 2015-06-30 19:44:43 +03:00
team.py Switch the Python side to Swagger v2 2015-05-14 16:47:38 -04:00
trigger.py Switch the Python side to Swagger v2 2015-05-14 16:47:38 -04:00
user.py Merge pull request #28 from coreos-inc/swagger2 2015-06-29 12:18:10 -04:00