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 f4a1646a8b Add an index on the logs_archived boolean on a RepositoryBuild
Addresses the slow query:

```
SELECT `candidates` . `id` FROM ( SELECT `t1` . `id` FROM `repositorybuild` AS `t1` WHERE ( ( ( `t1` . `phase` IN (...) ) OR ( `t1` . `started` < ? ) ) AND ( `t1` . `logs_archived` = ? ) ) LIMIT ? ) AS `candidates` ORDER BY `Rand` ( ) LIMIT ? OFFSET ?
```

While the cardinality on `logs_archived` will be low, it should also only be in the `false` state for a very small number of records, so it should make this query very, very fast.
2019-02-15 16:11:25 -05:00
..
appr_model Change appr search to return private repos when logged in 2019-02-14 17:39:40 -05:00
cache Add ability for specific geographic regions to be blocked from pulling images within a namespace 2018-12-06 17:14:45 -05:00
logs_model Fix elasticsearch test 2019-02-14 14:19:23 -05:00
migrations Add an index on the logs_archived boolean on a RepositoryBuild 2019-02-15 16:11:25 -05:00
model Optimize lookup of shared global blobs 2019-02-14 12:46:42 -05:00
registry_model Make sure _lookup_repo_storages_by_content_checksum operates over a set 2019-02-14 14:43:23 -05:00
test Move queue tests to pytest 2018-07-18 15:22:38 -04:00
users Remove password confirmation in config app 2018-07-17 16:00:55 -04:00
__init__.py Refactor the code into modules, it was getting unweildy. 2013-09-25 12:45:12 -04:00
archivedlogs.py fix(data.archivedlogs): update endpoint name 2017-04-26 17:31:44 -04:00
billing.py Add new 2000 repo pricing tier 2018-09-28 15:42:57 -04:00
buildlogs.py Decrease redis timeouts to within the WAMP message window 2018-03-02 16:53:37 -05:00
database.py Add an index on the logs_archived boolean on a RepositoryBuild 2019-02-15 16:11:25 -05:00
fields.py Upgrade Peewee to latest 3.x 2018-07-23 12:43:23 -04:00
queue.py Switch build queue limiter query to use total number of alive jobs 2018-02-21 14:04:40 -05:00
read_slave.py Add support for read slave databases. 2014-07-02 19:10:24 -04:00
runmigration.py Fix main app migration pathway 2018-06-21 15:33:26 -04:00
text.py Upgrade Peewee to latest 3.x 2018-07-23 12:43:23 -04:00
userevent.py fix(userevent): ignore subscribe notifications in userevents 2017-01-20 13:38:02 -05:00
userfiles.py Fully migrate API security tests into the pytest test suite 2018-07-08 18:33:21 +03:00