Files
danbooru/app/logical
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-06-16 21:36:15 -05:00
2020-06-16 21:36:15 -05:00
2019-11-09 14:42:30 -06:00
2019-08-01 00:06:18 -05:00
2020-12-31 06:50:10 -06:00
2020-06-16 21:36:15 -05:00
2020-06-16 21:36:15 -05:00
2020-06-16 21:36:15 -05:00
2020-06-16 21:36:15 -05:00
2020-12-13 21:18:24 -06:00