Tentative fix for bad query perf with recent sqlite versions: limit 1 seems to be culprit
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user