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
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
..
migrations Add a server default for the broken migration. 2015-07-14 16:58:58 -04:00
model 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
archivedlogs.py Finish the build logs archiver, add handlers for cloud and local that handle gzip encoded archived content. 2014-09-11 15:33:10 -04:00
billing.py Rename collections to morecollections to avoid a conflict with the built in module. 2014-09-08 16:42:43 -04:00
buildlogs.py Strip whitespace from ALL the things. 2014-11-24 16:07:38 -05:00
database.py Fix deletion of robot accounts when attached to builds 2015-06-30 22:56:44 +03:00
queue.py Fix queue handling to remove the dependency from repobuild, and have a cancel method 2015-02-23 13:38:01 -05:00
read_slave.py Add support for read slave databases. 2014-07-02 19:10:24 -04:00
runmigration.py Implement new step-by-step setup 2015-01-23 17:19:15 -05:00
userevent.py Fix the tutorial's user events 2015-04-03 12:13:33 -04:00
userfiles.py Finish the build logs archiver, add handlers for cloud and local that handle gzip encoded archived content. 2014-09-11 15:33:10 -04:00
users.py Merge pull request #190 from coreos-inc/timezone 2015-06-30 12:05:00 -04:00