mirror of https://github.com/stashapp/stash.git
![]() * 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> |
||
---|---|---|
.. | ||
filter.go | ||
filter_internal_test.go | ||
gallery.go | ||
gallery_test.go | ||
image.go | ||
image_test.go | ||
movies.go | ||
movies_test.go | ||
performer.go | ||
performer_test.go | ||
query.go | ||
repository.go | ||
saved_filter.go | ||
saved_filter_test.go | ||
scene.go | ||
scene_marker.go | ||
scene_marker_test.go | ||
scene_test.go | ||
scraped_item.go | ||
setup_test.go | ||
sql.go | ||
stash_id_test.go | ||
studio.go | ||
studio_test.go | ||
tag.go | ||
tag_test.go | ||
transaction.go |