Try to reduce memory usage for querying narinfos
This commit is contained in:
parent
26d2b6377b
commit
f2d7369359
2 changed files with 4 additions and 4 deletions
|
|
@ -386,7 +386,7 @@ ORDER BY COUNT(*) DESC")
|
|||
#:key
|
||||
build-success-after
|
||||
after-id
|
||||
(limit 2000))
|
||||
(limit 500))
|
||||
(define query
|
||||
(string-append
|
||||
"
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue