aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/model
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-09-14 15:42:00 +0100
committerChristopher Baines <mail@cbaines.net>2022-09-14 15:42:00 +0100
commitf41bfcf8b6895ea2847b4c2873766b7cd09a56de (patch)
tree84167bec1c20da878885a12994392ff1b7695128 /guix-data-service/model
parent189b9a4e869b2f132bd3736be3f6c51b3c33b418 (diff)
downloaddata-service-f41bfcf8b6895ea2847b4c2873766b7cd09a56de.tar
data-service-f41bfcf8b6895ea2847b4c2873766b7cd09a56de.tar.gz
Reduce some chunk sizes
As these queries are still slow enough to be logged.
Diffstat (limited to 'guix-data-service/model')
-rw-r--r--guix-data-service/model/derivation.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix-data-service/model/derivation.scm b/guix-data-service/model/derivation.scm
index b3b9cd3..c910775 100644
--- a/guix-data-service/model/derivation.scm
+++ b/guix-data-service/model/derivation.scm
@@ -1423,7 +1423,7 @@ INNER JOIN derivation_outputs
AND vals.output_name = derivation_outputs.name")))))
(chunk-for-each! process-chunk
- 500
+ 250
(list-copy derivation-ids)
(list-copy derivations)))
@@ -1808,7 +1808,7 @@ WHERE derivation_inputs.derivation_id IN ("
#f "querying for batch of ~A related derivation ids"
(length ids-chunk))
(exec-query conn query)))))
- (chunk! ids 1000))
+ (chunk! ids 500))
<))
(define (derivation-ids->missing-sources ids)