Commit 8f92253b authored by Manuel Mohr's avatar Manuel Mohr
Browse files

Improve statev_sql performance for sqlite.

Set magic parameters according to
parent 9bf58862
......@@ -121,6 +121,11 @@ class EmitSqlite3(EmitBase):
self.conn = sqlite3.connect(options.database)
self.cursor = self.conn.cursor()
# Improve sqlite performance according to
# Store journal in memory and don't wait for disk writes
self.execute("PRAGMA journal_mode = MEMORY")
self.execute("PRAGMA synchronous = OFF")
self.types["data"] = "double"
self.types["text"] = "text"
self.types["bool"] = "int"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment