From f757ac79ad0825159235240e3a37a83915fd4ccd Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 4 Dec 2020 18:47:10 +0000 Subject: Move some metrics out of base-datastore-metrics-updater Some parts of this were quite slow with anything other than a small database, so instead of doing slow queries on every request, do some slow queries to setup the metrics, and then change them as part of the regular changes to the database. --- guix-build-coordinator/datastore.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'guix-build-coordinator/datastore.scm') diff --git a/guix-build-coordinator/datastore.scm b/guix-build-coordinator/datastore.scm index 77c47ec..8ddfb67 100644 --- a/guix-build-coordinator/datastore.scm +++ b/guix-build-coordinator/datastore.scm @@ -9,6 +9,7 @@ datastore-find-build-output)) (re-export datastore-spawn-fibers) +(re-export datastore-initialise-metrics!) (re-export datastore-update-metrics!) (re-export datastore-update) (re-export datastore-call-with-transaction) -- cgit v1.2.3