* Index the Builds table on drvPath to prevent a full table scan
in findBuildDependencyInQueue in hydra_queue_runner.
This commit is contained in:
		| @@ -526,6 +526,7 @@ create index IndexBuildsOnJobset on Builds(project, jobset); | ||||
| create index IndexBuildsOnProject on Builds(project); | ||||
| create index IndexBuildsOnTimestamp on Builds(timestamp); | ||||
| create index IndexBuildsOnJobFinishedId on builds(project, jobset, job, system, finished, id DESC); | ||||
| create index IndexBuildsOnDrvPath on Builds(drvPath); | ||||
| create index IndexCachedHgInputsOnHash on CachedHgInputs(uri, branch, sha256hash); | ||||
| create index IndexCachedGitInputsOnHash on CachedGitInputs(uri, branch, sha256hash); | ||||
| create index IndexCachedSubversionInputsOnUriRevision on CachedSubversionInputs(uri, revision); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user