where id = multiple artists
Posted
by pixel
on Stack Overflow
See other posts from Stack Overflow
or by pixel
Published on 2010-04-22T19:55:59Z
Indexed on
2010/04/22
20:03 UTC
Read the original article
Hit count: 173
Any time there is an update within my music community (song comment, artist update, new song added, yadda yadda yadda), a new row is inserted in my "updates" table. The row houses the artist id involved along with other information (what type of change, time and date, etc).
My users have a "favorite artists" section where they can do just that -- mark artists as their favorites. As such, I'd like to create a new feature that shows the user the changes made to their various favorite artists.
How should I be doing this efficiently?
SELECT *
FROM table_updates
WHERE artist_id = 1
and artist_id = 500
and artist_id = 60032
Keep in mind, a user could have 43,000 of our artists marked as a favorite.
Thoughts?
© Stack Overflow or respective owner