Let's assume I have Playlist, Song and playlist_song tables.
Where's it's better to store song ordering data?
In Playlist as JSON songs_order = [song_id_1, song_id_3, song_id_2]
or better on playlist_song.order
.
I am more tempted by storing it on Playlist but would like some opinions about this. I prefer it because in second option there's another issue how to limit updates - https://softwareengineering.stackexchange.com/questions/304593/how-to-store-ordered-information-in-a-relational-database
Constraint is that Playlist will have no more than 1000 songs.