Try to reduce memory usage for querying narinfos

This commit is contained in:
Christopher Baines 2025-06-29 09:46:17 +02:00
parent 26d2b6377b
commit f2d7369359
2 changed files with 4 additions and 4 deletions

View file

@ -386,7 +386,7 @@ ORDER BY COUNT(*) DESC")
#:key
build-success-after
after-id
(limit 2000))
(limit 500))
(define query
(string-append
"

View file

@ -114,7 +114,7 @@
total-narinfos)
(let ((filtered-narinfos
(filter-map
(remove!
(lambda (narinfo)
(if (> (narinfo-size narinfo)
%narinfo-max-size)
@ -123,8 +123,8 @@
"narinfo ~A has excessive size ~A\n"
(narinfo-path narinfo)
(narinfo-size narinfo))
#f)
narinfo))
#t)
#f))
narinfos)))
(unless (null? filtered-narinfos)