Hello, I have application of songs and comments.
I have 3 ways of storing this data and I wonder what is the corrent way?
1)
All-in-on: Songs object, and inside every song there is comment object
My second question is how to sort queries?
I want to fetch 10 songs sort by comments number.
Example:
Fetch 3 songs in this order:
1) First song: 227 comments
2) Second song: 138 comments
3) Third song: 122 comments
Next fetch will be:
1) Fourth song: 97 comments
2) Fifth song: 51 comments
3) Sixth song: 11 comments
Thanks you very much people.