Get rid of some obsolete indexes
[?]
Sep 29, 2014, 8:29 PM
LTQMSMYOKOZ7PZAR6INSDSTZYTQ2L54K5R2QLILB5MMA76DPJOPQCDependencies
- [2]
P57OYJ4PIndex builds on stop time - [3]
LGNML7VJDon't use a prepared statement for the active build steps query - [4]
FANTYCR7Materialize the number of finished builds - [5]
2I2ZX6JB* Make the "latest succeeded" query (used by the "latest" channel) - [6]
O25D52TAinitial support for mercurial - [7]
E2TOU3L6* More indices. - [8]
6QRHXIM3* Speed up the jobset index page. Especially the query to get the - [9]
C5W3WZ3Y* Index the Builds table on drvPath to prevent a full table scan - [10]
5L272QSCSpeed up the /jobset overview pages a lot - [11]
PT5XCF2NAdd another index to speed up the jobstatus page - [12]
TFVGX4JSAdd an index to speed up the /project/<name> pages - [13]
34DPX2OR* Create some more indices on tables that have a foreign key reference - [14]
RXVJFQ5AEvaluator cleanups - [15]
P5VJCT6Ufix wrong comment - [*]
N22GPKYT* Put info about logs / build products in the DB. - [*]
D5QIOJGP* Move everything up one directory.
Change contents
- edit in src/sql/hydra.sql at line 552[3.81]→[3.0:153](∅→∅),[3.83]→[3.0:153](∅→∅),[3.2638]→[3.0:153](∅→∅),[3.153]→[3.2787:2867](∅→∅),[3.703]→[3.2787:2867](∅→∅),[3.2787]→[3.2787:2867](∅→∅)
--create index IndexBuildsOnJob on Builds(project, jobset, job);--create index IndexBuildsOnJobAndIsCurrent on Builds(project, jobset, job, isCurrent);create index IndexBuildsOnJobAndSystem on Builds(project, jobset, job, system); - edit in src/sql/hydra.sql at line 556
create index IndexBuildsOnJobsetFinishedTimestamp on Builds(project, jobset, finished, timestamp DESC); -- obsolete? - edit in src/sql/hydra.sql at line 557
create index IndexBuildsOnJobSystemCurrent on Builds(project, jobset, job, system, isCurrent); - edit in src/sql/hydra.sql at line 571
create index IndexMostRecentSuccessfulBuilds on Builds(project, jobset, job, system, finished, buildStatus, id desc); - file addition: upgrade-29.sql[18.3004]
drop index IndexBuildsOnJobAndSystem;drop index IndexBuildsOnJobSystemCurrent;drop index IndexBuildsOnJobsetFinishedTimestamp;drop index IndexMostRecentSuccessfulBuilds;