diff options
author | Christopher Baines <mail@cbaines.net> | 2020-02-04 00:11:47 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-02-04 00:11:47 +0000 |
commit | 77beb5949511db7fc5236567b8b1d25d98f82bbb (patch) | |
tree | 51cae57e6435442cb798bc8d9fdaf2d6343866d5 /guix-data-service/model | |
parent | a3c5f53fcdf0852400788375ef7d352b71eaebe9 (diff) | |
download | data-service-77beb5949511db7fc5236567b8b1d25d98f82bbb.tar data-service-77beb5949511db7fc5236567b8b1d25d98f82bbb.tar.gz |
Use a temporary table when inserting package metadata entries
To speed up this step, as there is a lot of data.
Diffstat (limited to 'guix-data-service/model')
-rw-r--r-- | guix-data-service/model/package-metadata.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/guix-data-service/model/package-metadata.scm b/guix-data-service/model/package-metadata.scm index 87a5dba..e2166d5 100644 --- a/guix-data-service/model/package-metadata.scm +++ b/guix-data-service/model/package-metadata.scm @@ -179,4 +179,7 @@ WHERE packages.id IN ( ;; you have one package definition which interits from another, and just ;; overrides the version and the source, the package_metadata entries for ;; both definitions will be the same. - #:delete-duplicates? #t)) + #:delete-duplicates? #t + ;; There is so much package metadata that it's worth creating a temporary + ;; table + #:use-temporary-table? #t)) |