diff options
author | Christopher Baines <mail@cbaines.net> | 2023-05-19 13:47:21 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-05-19 13:47:21 +0100 |
commit | 768c5e6d56569eaee46e98b41f5e28f43e424b64 (patch) | |
tree | 07774fc58b7a6b819bb1a721d059321d52378e46 /guix-build-coordinator/datastore.scm | |
parent | c97163f38f747f3eaebdc19707236810a0b8b047 (diff) | |
download | build-coordinator-768c5e6d56569eaee46e98b41f5e28f43e424b64.tar build-coordinator-768c5e6d56569eaee46e98b41f5e28f43e424b64.tar.gz |
Change listing builds to work as a stream
Both in terms of getting the data from the database, and sending it to the
client.
This avoids the use of the after-id and ordering by id when listing builds,
which makes listing builds faster. It does mean that the database reads may
last for a while (which can be a problem), but maybe that can be addressed in
other ways.
Diffstat (limited to 'guix-build-coordinator/datastore.scm')
-rw-r--r-- | guix-build-coordinator/datastore.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix-build-coordinator/datastore.scm b/guix-build-coordinator/datastore.scm index 4af90e0..3fec2b5 100644 --- a/guix-build-coordinator/datastore.scm +++ b/guix-build-coordinator/datastore.scm @@ -59,7 +59,7 @@ (re-export datastore-count-builds) (re-export datastore-for-each-build) (re-export datastore-find-build) -(re-export datastore-list-builds) +(re-export datastore-fold-builds) (re-export datastore-insert-build-tags) (re-export datastore-fetch-build-tags) (re-export datastore-find-build-result) |