Optimise index usage in sound search

This commit is contained in:
jude 2025-02-25 18:16:55 +00:00
parent 4177c82d67
commit 6caca25719

View File

@ -152,7 +152,7 @@ impl SoundCtx for Data {
"
SELECT name, id, public, server_id, uploader_id
FROM sounds
WHERE name LIKE CONCAT('%', ?, '%') AND (
WHERE name LIKE CONCAT(?, '%') AND (
public = 1 OR
uploader_id = ? OR
server_id = ?