guix-play/guix/store
Christopher Baines 511d68c71d
store: database: Stop finalizing prepared statements.
Especially since we're asking for these to be cached.

Management of prepared statements isn't trivial, since you don't want to keep
them forever as this can lead to poor query performance, but I don't think
that finalizing them immediately is the right solution.

Change-Id: I61706b4d09d771835bb8f074b8f6a6ee871f5e2d

* guix/store/database.scm (sqlite-step-and-reset): New procedure.
(last-insert-row, path-id, update-or-insert, add-references): Don't finalize
prepared statements.

Change-Id: I2a2c6deb43935d67df9e43000a5105343d72b3e6
2024-04-03 17:18:39 +01:00
..
database.scm store: database: Stop finalizing prepared statements. 2024-04-03 17:18:39 +01:00
deduplication.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
roots.scm store: Tolerate non-existent GC root directories. 2023-06-18 23:36:25 +02:00
schema.sql
ssh.scm