summaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-02-28 17:52:09 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-02-28 17:52:09 +0100
commitf777a5dfb1eecdb1a6359c6a81b457b4994c0ee8 (patch)
tree7ac47842240e204f09dccf33fe37db5b3d138a44 /api.py
parente146deb38fcd2589463bd376979a816c1a8ee9f0 (diff)
downloadshrinker-f777a5dfb1eecdb1a6359c6a81b457b4994c0ee8.tar.gz
shrinker-f777a5dfb1eecdb1a6359c6a81b457b4994c0ee8.zip
don't create indexes
Diffstat (limited to 'api.py')
-rw-r--r--api.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/api.py b/api.py
index 17cf187..249c362 100644
--- a/api.py
+++ b/api.py
@@ -54,11 +54,6 @@ class Worker(object):
with open(path, "r", encoding="utf-8-sig") as file:
self._queries[table] = file.read()
logging.info("loaded query '%s'", table)
- logging.info("creating index")
- async with self._destpool.acquire() as con:
- async with con.transaction():
- await con.execute("CREATE UNIQUE INDEX ON match(\"apiId\")")
- await con.execute("CREATE UNIQUE INDEX ON player(\"apiId\")")
async def _execute_job(self, jobid, payload, priority):
"""Finish a job."""