diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-28 17:52:09 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-02-28 17:52:09 +0100 |
| commit | f777a5dfb1eecdb1a6359c6a81b457b4994c0ee8 (patch) | |
| tree | 7ac47842240e204f09dccf33fe37db5b3d138a44 /api.py | |
| parent | e146deb38fcd2589463bd376979a816c1a8ee9f0 (diff) | |
| download | shrinker-f777a5dfb1eecdb1a6359c6a81b457b4994c0ee8.tar.gz shrinker-f777a5dfb1eecdb1a6359c6a81b457b4994c0ee8.zip | |
don't create indexes
Diffstat (limited to 'api.py')
| -rw-r--r-- | api.py | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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.""" |
