mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Autotag optimisation (#2368)
* Add duration to autotag finish message * No sorting scene/image/gallery where not specified * Use an LRU cache for sqlite regexp function * Compile path separator regex once * Cache objects with single letter first names * Move finished auto-tag log * Add more verbose logging * Add new changelog
This commit is contained in:
@@ -760,8 +760,7 @@ func (qb *sceneQueryBuilder) getDefaultSceneSort() string {
|
||||
}
|
||||
|
||||
func (qb *sceneQueryBuilder) setSceneSort(query *queryBuilder, findFilter *models.FindFilterType) {
|
||||
if findFilter == nil {
|
||||
query.sortAndPagination += qb.getDefaultSceneSort()
|
||||
if findFilter == nil || findFilter.Sort == nil || *findFilter.Sort == "" {
|
||||
return
|
||||
}
|
||||
sort := findFilter.GetSort("title")
|
||||
|
||||
Reference in New Issue
Block a user