All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] prserv/db: Avoid fsync() calls
@ 2014-05-03 10:18 Richard Purdie
  2014-05-03 16:12 ` Mark Hatle
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2014-05-03 10:18 UTC (permalink / raw)
  To: bitbake-devel

If the power were to fail, it doesn't matter to us much if the data
makes it to disk or not, we'd have other problems. However an fsync()
call on a multi build autobuilder is painful so lets avoid them.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/prserv/db.py b/bitbake/lib/prserv/db.py
index 86eafe3..49f36da 100644
--- a/bitbake/lib/prserv/db.py
+++ b/bitbake/lib/prserv/db.py
@@ -220,6 +220,7 @@ class PRData(object):
                 raise e
         self.connection=sqlite3.connect(self.filename, isolation_level="EXCLUSIVE", check_same_thread = False)
         self.connection.row_factory=sqlite3.Row
+        self.connection.execute("pragma synchronous = off;")
         self._tables={}
 
     def __del__(self):




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-06 20:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-03 10:18 [PATCH] prserv/db: Avoid fsync() calls Richard Purdie
2014-05-03 16:12 ` Mark Hatle
2014-05-06 20:46   ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.