Tentative fix for bad query perf with recent sqlite versions: limit 1 seems to be culprit

This commit is contained in:
emeric
2025-07-13 00:06:10 +02:00
parent 59e85ee424
commit 6704762cc3
6 changed files with 116 additions and 15 deletions
@@ -91,7 +91,7 @@ namespace lms::db
}
if (params.imageType.has_value())
query.where("+t_e_i_l.type = ?").bind(params.imageType.value()); // hack: type is a bad way to reduce the result space
query.where("t_e_i_l.type = ?").bind(params.imageType.value());
}
switch (params.sortMethod)