Skip to content

Commit dd607fb

Browse files
committed
Create host index on targets table
1 parent d4905a3 commit dd607fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/make-sqlite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def nomes_all(where=sys.argv[1:]):
3838
contents TEXT)''')
3939
c.execute('''DROP TABLE IF EXISTS targets''')
4040
c.execute('''CREATE TABLE targets
41-
(
42-
host TEXT,
41+
(host TEXT,
4342
ruleset_id INTEGER)''')
43+
c.execute('''CREATE INDEX host_index on targets(host)''')
4444

4545
parser = etree.XMLParser(remove_blank_text=True)
4646

0 commit comments

Comments
 (0)