guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Mathieu Othacehe
Date: Mon, 19 Oct 2020 12:52:53 -0400 (EDT)

branch: wip-mmap
commit 3d76a43ebf746a475910eab36b2095b4f48ffdda
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Mon Oct 19 18:52:02 2020 +0200

    Decrease disk I/O operations.
---
 src/cuirass/database.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/cuirass/database.scm b/src/cuirass/database.scm
index fc3eb00..579875c 100644
--- a/src/cuirass/database.scm
+++ b/src/cuirass/database.scm
@@ -282,7 +282,9 @@ writing queries, i.e CREATE, DELETE, DROP, INSERT, or 
UPDATE queries."
   (sqlite-exec db "PRAGMA page_size = 32768;")
   (sqlite-exec db "PRAGMA cache_size = -500000;")
   (sqlite-exec db "PRAGMA temp_store = MEMORY;")
-  (sqlite-exec db "PRAGMA synchronous = NORMAL;")
+
+  (sqlite-exec db "PRAGMA synchronous = OFF;")
+  (sqlite-exec db "PRAGMA mmap_size = 10737418240;")
   db)
 
 (define (db-load db schema)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]