f4a1646a8b
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. |
||
---|---|---|
.. | ||
versions | ||
__init__.py | ||
env.py | ||
migration.sh | ||
script.py.mako | ||
tester.py |