stash/pkg/sqlite
gitgiggety fc6cafa15f
Fix hierarchical criteria performance issue (#1643)
* Fix hierarchical criteria performance issue

Don't apply recursive clause to hierarchical criteria when the depth is
set to 0 (i.e.: no recursion is needed).

This undoes the current performance penalty on for example the studios
page. This as reported in #1519, using a database of 4M images, 30K
scenes and 500 studios. Without this fix loading the studios overview,
with the default of 40 items per page, takes 6 to 7 seconds. With this
fix it only takes 0,07 seconds reverting the performance back to the
pre-hierarchical filtering performance (tested against 508f7b84 which
was the last commit before #1397 was merged).
2021-08-17 13:43:22 +10:00
..
filter.go Fix hierarchical criteria performance issue (#1643) 2021-08-17 13:43:22 +10:00
filter_internal_test.go Always wrap filter conditions in parentheses (#1577) 2021-07-14 18:29:59 +10:00
gallery.go [Feature] Better resolution search (#1568) 2021-08-02 13:22:39 +10:00
gallery_test.go [Feature] Better resolution search (#1568) 2021-08-02 13:22:39 +10:00
image.go Add various filter criteria (#1505) 2021-06-23 09:10:20 +10:00
image_test.go [Feature] Better resolution search (#1568) 2021-08-02 13:22:39 +10:00
movies.go Add various filter criteria (#1505) 2021-06-23 09:10:20 +10:00
movies_test.go Fix movies sorting, scene studio editing (#1478) 2021-06-04 09:21:17 +10:00
performer.go Add (not) between modifiers for number criterion (#1559) 2021-08-12 10:24:16 +10:00
performer_test.go Fix Performer Studio filtering (#1483) 2021-06-06 15:05:05 +10:00
query.go Add (not) between modifiers for number criterion (#1559) 2021-08-12 10:24:16 +10:00
repository.go Filter studio hierarchy (#1397) 2021-06-03 20:52:19 +10:00
saved_filter.go Saved filters (#1474) 2021-06-16 14:53:32 +10:00
saved_filter_test.go Saved filters (#1474) 2021-06-16 14:53:32 +10:00
scene.go Add (not) between modifiers for number criterion (#1559) 2021-08-12 10:24:16 +10:00
scene_marker.go Filter studio hierarchy (#1397) 2021-06-03 20:52:19 +10:00
scene_marker_test.go Data layer restructuring (#997) 2021-01-18 12:23:20 +11:00
scene_test.go [Feature] Better resolution search (#1568) 2021-08-02 13:22:39 +10:00
scraped_item.go Data layer restructuring (#997) 2021-01-18 12:23:20 +11:00
setup_test.go [Feature] Better resolution search (#1568) 2021-08-02 13:22:39 +10:00
sql.go Add (not) between modifiers for number criterion (#1559) 2021-08-12 10:24:16 +10:00
stash_id_test.go Query bug fixes (#1510) 2021-06-21 15:48:28 +10:00
studio.go Add various filter criteria (#1505) 2021-06-23 09:10:20 +10:00
studio_test.go Filter studio hierarchy (#1397) 2021-06-03 20:52:19 +10:00
tag.go Add (not) between modifiers for number criterion (#1559) 2021-08-12 10:24:16 +10:00
tag_test.go Actually implement TagFilter.marker_count (#1603) 2021-08-04 13:39:24 +10:00
transaction.go Saved filters (#1474) 2021-06-16 14:53:32 +10:00