diff options
author | Christopher Baines <mail@cbaines.net> | 2021-11-07 19:29:44 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-11-07 19:29:44 +0000 |
commit | d4a262db292a8ac311ef72760c63701f7b632be4 (patch) | |
tree | 9c69e931ec6e270b5fee1e0e1b00dd796a106309 /guix-build-coordinator/datastore.scm | |
parent | a4d0ec6bc564bbe98d3e6c03be41de16edbda928 (diff) | |
download | build-coordinator-d4a262db292a8ac311ef72760c63701f7b632be4.tar build-coordinator-d4a262db292a8ac311ef72760c63701f7b632be4.tar.gz |
Refactor how unprocessed builds are tracked
Previously, the allocator worked out the derived priorities for each
build. Unfortunately this is quite a complex query, and took lots of time. As
a result of this, I think the WAL could grow excessively while this long query
was running.
To try and mitigate this, add a new table to keep track of the derived
priorities for unprocessed builds. This requires some maintenance to keep up
to date, which in turn will make things like submitting builds slower, but I
think this might help keep transaction length and WAL size down overall.
Diffstat (limited to 'guix-build-coordinator/datastore.scm')
-rw-r--r-- | guix-build-coordinator/datastore.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/guix-build-coordinator/datastore.scm b/guix-build-coordinator/datastore.scm index 613de36..0afaea0 100644 --- a/guix-build-coordinator/datastore.scm +++ b/guix-build-coordinator/datastore.scm @@ -26,6 +26,7 @@ (re-export datastore-fetch-agent-tags) (re-export datastore-count-build-results) (re-export datastore-insert-build-result) +(re-export datastore-update-unprocessed-builds-for-build-success) (re-export datastore-remove-build-allocation) (re-export datastore-mark-build-as-processed) (re-export datastore-delete-relevant-outputs-from-unbuilt-outputs) |