Files
danbooru/test/unit
evazion 98ee6c31c1 favorites: refactor fav:/ordfav: searches to not use fav_string.
Refactor fav:<name> and ordfav:<name> searches to use the favorites
table instead of the posts.fav_string.

This may be slower for fav:<name> searches. The fav_string effectively
treats favorites like secret tags on the post, so fav:<name> searches
were effectively the same as tag searches. Now they do a subquery on the
favorites table, which may not perform as well for things like multiple
fav:<name> metatags or negated fav:<name> metatags.

For ordfav:<name> searches, this may be faster. ordfav: searches had a
tag match clause (`tag_index @@ 'fav:123'`) in addition to a join on the
favs table. This was redundant, and in some cases it inhibited the query
planner from choosing a more optimal plan.

Partially addresses #4652 by eliminating another place where we depended
on the fav_string.
2021-01-03 19:18:31 -06:00
..
2020-11-10 14:52:54 -06:00
2020-03-21 21:07:35 -05:00
2020-07-13 19:30:40 -05:00
2020-03-20 18:03:00 -05:00
2020-06-20 00:20:39 -05:00
2020-04-21 00:31:16 -05:00
2020-03-21 21:07:35 -05:00
2020-03-21 21:07:35 -05:00
2020-02-23 17:52:38 -06:00