diff options
author | Christopher Baines <mail@cbaines.net> | 2022-01-12 18:18:15 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2022-01-12 18:18:15 +0000 |
commit | 21cb33a859a25ac6ba82f32e014ea642e2e62afc (patch) | |
tree | e068f8f4a7f8aa47016f6ad2a73ff126f04f11ff /guix-data-service/jobs.scm | |
parent | 6102553d947c8ae2f321091916986b091b94cee0 (diff) | |
download | data-service-21cb33a859a25ac6ba82f32e014ea642e2e62afc.tar data-service-21cb33a859a25ac6ba82f32e014ea642e2e62afc.tar.gz |
Re-write insert-derivation-inputs in a more memory efficient manor
Previously it would compute a long list of strings, potentially more than
100,000 elements long, then split this string up and insert it in chunks. Only
then could memory be freed.
This new approach builds the strings in batches for the insertion query, then
moves on to the next batch. This should mean that more memory can be freed and
reused along the way.
Diffstat (limited to 'guix-data-service/jobs.scm')
0 files changed, 0 insertions, 0 deletions