Commit b59e00b6 authored by Matthias Braun's avatar Matthias Braun
Browse files

create an index, as this heavily speeds up some queries

parent 35fe54e2
......@@ -134,8 +134,10 @@ class EmitSqlite3(EmitBase):
self.conn = sqlite3.connect(options.database)
table_ctx = self.create_table(ctxcols, self.ctxtab, 'text', 'unique')
self.conn.execute("CREATE INDEX IF NOT EXISTS ctxindex ON ctx(id)")
table_ev = self.create_table(evcols, self.evtab, 'double', '')
self.conn.execute("CREATE INDEX IF NOT EXISTS evindex ON ev(id)")
n = max(len(ctxcols), len(evcols)) + 1
q = ['?']
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