docbrown/db
Jamie Gaskins b7695f6c2a
Add a GIN index on comments.ancestry (#13120)
We have a btree index on this table but it is not invoked with a `LIKE`
operation that uses `%` - only when using `LIKE` with an exact match.

This query is DEV's second-most intense query by total time spent with
a p50 latency of ~130ms. This index brings it down to 5ms at p90.
2021-03-25 10:22:08 +01:00
..
migrate Add a GIN index on comments.ancestry (#13120) 2021-03-25 10:22:08 +01:00
schema.rb Add a GIN index on comments.ancestry (#13120) 2021-03-25 10:22:08 +01:00
seeds.rb Update seeds.rb ASCII output to Forem (#12883) 2021-03-03 11:19:11 -06:00