Files
danbooru/app/logical
evazion 5df3b01ca2 Fix timeouts in source:<url> searches and bookmarklet.
* Change the source index on posts from `(lower(source) gin_trgm_ops) WHERE source != ''`
  to just `(source gin_trgm_ops)`. The WHERE clause prevented the index
  from being used in source:<url> searches because we didn't specify
  the `source != ''` clause in the search itself. Excluding blank
  sources only saved a marginal amount of space anyway. This fixes
  timeouts in source:<url> searches and in the bookmarklet (since we do
  a source dupe check on the upload page too).

* Also switch from indexing `lower(name)` to `name` on pools and users.
  We don't need to lowercase the column because GIN indexes can be used
  with both LIKE and ILIKE queries.
2019-09-02 18:53:27 -05:00
..
2018-08-24 12:10:51 -07:00
2014-02-28 16:40:11 -08:00
2018-08-03 17:40:00 -07:00
2019-09-02 13:13:58 -05:00
2018-01-13 20:55:52 -08:00
2019-08-30 20:03:36 -05:00
2019-08-01 00:06:18 -05:00
2018-09-11 14:19:17 -07:00
2018-08-24 12:10:51 -07:00
2018-06-23 11:15:14 -07:00
2018-08-24 12:10:51 -07:00
2017-10-12 16:36:17 -07:00
2017-02-21 13:40:52 -08:00