-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
library/dao/playlistdao: Increase robustness by using prepared statements #2900
Conversation
Fixes #10025 Thanks for jumping in, Jan! |
4749440
to
95aeece
Compare
95aeece
to
7993234
Compare
return; | ||
} | ||
|
||
query.prepare(QStringLiteral( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MUCH (25 ms vs. 1000 ms) faster: Oh, but that doesn't cover orphaned tracks. Ignore it!
SELECT PlaylistTracks.position FROM PlaylistTracks
INNER JOIN library ON library.id=PlaylistTracks.track_id
AND library.mixxx_deleted=0
AND PlaylistTracks.playlist_id=:id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Works as is. No need to change it.
LGTM |
No description provided.