Move backfilling in to the server module and use the connection pool
To avoid using the old PostgreSQL connection per thread code.
This commit is contained in:
parent
5f5b8fc91d
commit
b5f59189e1
3 changed files with 19 additions and 24 deletions
|
|
@ -197,13 +197,6 @@
|
|||
(lambda (port)
|
||||
(simple-format port "~A\n" (getpid)))))
|
||||
|
||||
(call-with-new-thread
|
||||
(lambda ()
|
||||
(with-postgresql-connection-per-thread
|
||||
"backfill"
|
||||
(lambda ()
|
||||
(backfill-guix-revision-package-derivation-distribution-counts)))))
|
||||
|
||||
(start-substitute-query-threads)
|
||||
|
||||
(call-with-new-thread
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue