diff options
author | Christopher Baines <mail@cbaines.net> | 2020-11-06 19:50:27 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-11-06 19:50:27 +0000 |
commit | 744824a1f9f96b7b2f48a68fc06afc08c4e4a5bb (patch) | |
tree | cb226e96ddb1072e4768bb83e6d8d73f4072e136 /guix-build-coordinator/datastore.scm | |
parent | 98132e41824e1cbf3238581306482006147cbd87 (diff) | |
download | build-coordinator-744824a1f9f96b7b2f48a68fc06afc08c4e4a5bb.tar build-coordinator-744824a1f9f96b7b2f48a68fc06afc08c4e4a5bb.tar.gz |
Rework how the derivation ordered allocator gets builds
Use a temporary table to avoid computing the priorities for all builds. This
speeds up the allocation to only take a few seconds on the database I'm
testing against.
Diffstat (limited to 'guix-build-coordinator/datastore.scm')
-rw-r--r-- | guix-build-coordinator/datastore.scm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/guix-build-coordinator/datastore.scm b/guix-build-coordinator/datastore.scm index af55583..be4b91f 100644 --- a/guix-build-coordinator/datastore.scm +++ b/guix-build-coordinator/datastore.scm @@ -39,8 +39,7 @@ (re-export datastore-list-builds-for-derivation) (re-export datastore-list-processed-builds) (re-export datastore-list-unprocessed-builds) -(re-export datastore-list-unprocessed-builds-with-built-inputs) -(re-export datastore-fetch-unprocessed-builds-with-propagated-priorities) +(re-export datastore-fetch-build-ids-and-propagated-priorities-for-unprocessed-builds) (re-export datastore-count-unprocessed-hook-events) (re-export datastore-list-unprocessed-hook-events) (re-export datastore-delete-unprocessed-hook-event) |