SqlPlaylist: don't observe track and re-save whole playlist on track change
authorMatěj Laitl <matej@laitl.cz>
Tue, 12 Jun 2012 22:52:41 +0000 (00:52 +0200)
committerMatěj Laitl <matej@laitl.cz>
Sat, 14 Jul 2012 08:56:02 +0000 (10:56 +0200)
commitcb3674aa81eeca4f85041eb77a42a33064362d59
tree899dd543014f05773f1c176b00ccb5bcff6f73c2
parent58dd0be708695eb1087a511ea9055005ccc33efa
SqlPlaylist: don't observe track and re-save whole playlist on track change

No other playlist does that and this causes problems when someone has
really big playlists and slow connection to external MySQL db.

Not updating track metadata should not hurt, these are immediately
replaced by real ones by MetaProxy::Track. Moreover for uidUrl updates
there is SqlTrack::updatePlaylistsToDb() (I don't however know whether
it works as expected). Acked by Bart on the bug.

BUG: 301700
FIXED-IN: 2.6
ChangeLog
src/playlistmanager/sql/SqlPlaylist.cpp
src/playlistmanager/sql/SqlPlaylist.h