From 96b3f119f0de890296d8478f5a7bee917ed629f3 Mon Sep 17 00:00:00 2001 From: Rutger Vos Date: Tue, 16 Jan 2024 14:45:52 +0100 Subject: [PATCH] added index on barcode.country, fixes #74 --- workflow/scripts/map_opentol.py | 1 + 1 file changed, 1 insertion(+) diff --git a/workflow/scripts/map_opentol.py b/workflow/scripts/map_opentol.py index deb8676..cc7a08e 100644 --- a/workflow/scripts/map_opentol.py +++ b/workflow/scripts/map_opentol.py @@ -155,6 +155,7 @@ def postprocess_db(database): cursor.execute("""CREATE INDEX IF NOT EXISTS country_idx ON barcode (country)""") cursor.execute("""CREATE INDEX IF NOT EXISTS nucraw_idx ON barcode (nucraw)""") cursor.execute("""CREATE INDEX IF NOT EXISTS processid_idx ON barcode (processid)""") + cursor.execute("""CREATE INDEX IF NOT EXISTS country_idx ON barcode (country)""") conn.commit() conn.close()