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. |
||
|---|---|---|
| .. | ||
| appr_model | ||
| cache | ||
| logs_model | ||
| migrations | ||
| model | ||
| registry_model | ||
| test | ||
| users | ||
| __init__.py | ||
| archivedlogs.py | ||
| billing.py | ||
| buildlogs.py | ||
| database.py | ||
| fields.py | ||
| queue.py | ||
| read_slave.py | ||
| runmigration.py | ||
| text.py | ||
| userevent.py | ||
| userfiles.py | ||