Skip to content

Commit

Permalink
perf(postgres) search index on ttls table
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco authored and p0pr0ck5 committed Jun 23, 2017
1 parent c92d2d1 commit d3f550d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions kong/dao/migrations/postgres.lua
Original file line number Diff line number Diff line change
Expand Up @@ -510,4 +510,18 @@ return {
DROP TABLE nodes;
]],
},
{
name = "2017-06-16-283123_ttl_indexes",
up = [[
DO $$
BEGIN
IF (SELECT to_regclass('ttls_primary_uuid_value_idx')) IS NULL THEN
CREATE INDEX ttls_primary_uuid_value_idx ON ttls(primary_uuid_value);
END IF;
END$$;
]],
down = [[
DROP INDEX ttls_primary_uuid_value_idx;
]]
},
}

0 comments on commit d3f550d

Please sign in to comment.