diff options
Diffstat (limited to 'backend/data/enwiki/genData.py')
| -rwxr-xr-x | backend/data/enwiki/genData.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/data/enwiki/genData.py b/backend/data/enwiki/genData.py index 4f0d62e..646292c 100755 --- a/backend/data/enwiki/genData.py +++ b/backend/data/enwiki/genData.py @@ -91,6 +91,7 @@ dbCur = dbCon.cursor() dbCur.execute("CREATE TABLE pages (id INT PRIMARY KEY, title TEXT UNIQUE)") dbCur.execute("CREATE INDEX pages_title_idx ON pages(title COLLATE NOCASE)") dbCur.execute("CREATE TABLE redirects (id INT PRIMARY KEY, target TEXT)") +dbCur.execute("CREATE INDEX redirects_idx ON redirects(target)") dbCur.execute("CREATE TABLE descs (id INT PRIMARY KEY, desc TEXT)") # Read through dump file print("Reading dump file") |
