From f777a5dfb1eecdb1a6359c6a81b457b4994c0ee8 Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 28 Feb 2017 17:52:09 +0100 Subject: don't create indexes --- api.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'api.py') 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.""" -- cgit v1.3.1