]> git.ipfire.org Git - pakfire.git/commit
libpakfire: db: Set database to WAL mode
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Jan 2021 11:34:37 +0000 (11:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Jan 2021 11:34:37 +0000 (11:34 +0000)
commit257532904640d50d443aa08ac2b2229dbdfb0b2e
tree998b68f75a74cd7fdcfe20c9b6ad0dd66287d5b6
parent0076c50da239f8fe29406f5342ed69d4c7efa585
libpakfire: db: Set database to WAL mode

We disable autocheckpointing since we are expected to writer rather
large transactions and we would like to keep the database as compact as
possible, too. That is achieved by truncating the WAL log in the end
where the data is being copied into the main database and the WAL log
being emptied after.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/db.c