Log the time to read missing derivations from the store
This commit is contained in:
parent
3627d36d77
commit
af0a06d147
1 changed files with 7 additions and 6 deletions
|
|
@ -1793,12 +1793,13 @@ INNER JOIN derivation_source_files
|
||||||
derivation-file-names)
|
derivation-file-names)
|
||||||
|
|
||||||
(let ((missing-derivations
|
(let ((missing-derivations
|
||||||
(map read-derivation-from-file
|
(with-time-logging "reading missing derivations"
|
||||||
(deduplicate-strings
|
(map read-derivation-from-file
|
||||||
(filter (lambda (derivation-file-name)
|
(deduplicate-strings
|
||||||
(not (hash-ref derivation-ids-hash-table
|
(filter (lambda (derivation-file-name)
|
||||||
derivation-file-name)))
|
(not (hash-ref derivation-ids-hash-table
|
||||||
derivation-file-names)))))
|
derivation-file-name)))
|
||||||
|
derivation-file-names))))))
|
||||||
|
|
||||||
(unless (null? missing-derivations)
|
(unless (null? missing-derivations)
|
||||||
(insert-missing-derivations conn
|
(insert-missing-derivations conn
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue