Files
stash/pkg/sqlite
gitgiggety 9d641c64e3 Actually implement TagFilter.marker_count (#1603)
* Actually implement TagFilter.marker_count

The marker_count filter/criterion as defined in TagFilterType isn't
actually implemented. This adds an implementation for it.

Do note this implementation _might_ have performance issues because of
using OR (in the join). Another implentation would be to remove both
joins and use:
```SQL
COUNT(
    SELECT id FROM scene_markers WHERE primary_tag_id = tags.id
  UNION
    SELECT scene_marker_id FROM scene_markers_tags WHERE tag_id = tags.id
)
```
Note this doesn't require a DISTINCT as UNION already removes any
duplicate records.

* Restore marker count filter and sorting

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
2021-08-04 13:39:24 +10:00
..
2021-06-23 09:10:20 +10:00
2021-06-23 09:10:20 +10:00
2021-06-03 20:52:19 +10:00
2021-06-03 20:52:19 +10:00
2021-06-16 14:53:32 +10:00
2021-06-16 14:53:32 +10:00
2021-06-21 15:48:28 +10:00
2021-06-03 20:52:19 +10:00
2021-06-23 09:10:20 +10:00
2021-06-16 14:53:32 +10:00