Skip to content
Snippets Groups Projects
Commit 812456d9 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

winery: add index for per-shard statistics

parent f5f33f2f
No related branches found
No related tags found
No related merge requests found
......@@ -134,6 +134,10 @@ class SharedBase(Database):
CREATE INDEX IF NOT EXISTS signature2shard_deleted
ON signature2shard(signature, shard)
WHERE state = 'deleted'
""",
"""\
CREATE INDEX IF NOT EXISTS signature2shard_shard_state
ON signature2shard(shard, state)
""",
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment