aboutsummaryrefslogtreecommitdiff
path: root/backend/tolData/dbpedia/genDescData.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/tolData/dbpedia/genDescData.py')
-rwxr-xr-xbackend/tolData/dbpedia/genDescData.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/tolData/dbpedia/genDescData.py b/backend/tolData/dbpedia/genDescData.py
index a23199d..8756a40 100755
--- a/backend/tolData/dbpedia/genDescData.py
+++ b/backend/tolData/dbpedia/genDescData.py
@@ -41,6 +41,7 @@ with bz2.open(labelsFile, mode='rt') as file:
print("Reading/storing wiki page ids")
dbCur.execute("CREATE TABLE ids (iri TEXT PRIMARY KEY, id INT)")
+dbCur.execute("CREATE INDEX ids_idx ON ids(id)")
idLineRegex = re.compile(r'<([^>]+)> <[^>]+> "(\d+)".*\n')
lineNum = 0
with bz2.open(idsFile, mode='rt') as file: