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 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 Strip whitespace from ALL the things. 2014-11-24 16:07:38 -05:00
legacy.py Fix queries for repository list popularity and action count 2015-07-17 00:08:27 +03:00
oauth.py Fix OAuth redirect for denial action when generating for internal tokens 2015-06-02 12:25:59 -04:00
sqlalchemybridge.py Add a RepositoryActionCount table so we can use it (instead of LogEntry) when scoring repo search results 2015-04-13 13:31:07 -04:00