Vacuum the package derivations table after each job
As each job deletes lots of rows in the table, vacuum it to free up space for the next job. I don't think this is something to do widely, but I wanted to try it out for the tables which have a lot of churn.
This commit is contained in:
parent
5fb3fa177d
commit
e07b3291e8
2 changed files with 11 additions and 0 deletions
|
|
@ -1758,6 +1758,11 @@ SKIP LOCKED")
|
|||
(record-job-succeeded conn id)
|
||||
(record-job-event conn id "success")
|
||||
(exec-query conn "COMMIT")
|
||||
|
||||
(with-time-logging
|
||||
"vacuuming package derivations by guix revision range table"
|
||||
(vacuum-package-derivations-table conn))
|
||||
|
||||
#t)
|
||||
(begin
|
||||
(exec-query conn "ROLLBACK")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue