Hi. I will try to explain my dilema.
I have a music site with the following tables I want to make:
Albums
- albumid
Artists (primary key)
- artistid (primary key)
I want to be able ot list multiple artists with albums. So If I had an album called "The Calling" I want to list it with the band The Calling and Some Other Band, and Some Other Band maybe...
I heard a rumor that it was faster to use an array field in each table to link them up. Like in the albums table I have a field called albums_artistarray and in that field i have the numerical id number of each artist in my database i want to list with that album delimited by a ; or so. (example: 1;3;5). The xample would then list three artists with that album. I would also have a similar array in the artists table called artists_albumarray (this would list an array of each albumid this artist is listed with in the same way). Then I can use this array whenever I need to look up an artist and see all their albums, or look up an album and see all th artists listed with the album. The other way I could do this relationship linking is the way I have done in the past (have an extra table called artisttoalbums or something and have an artistid and albumid field and link them up that way). Can anyone tell me if an array would be faster? I know its a lot easier to manage as far as the database goes but i wanna make sure its the better way to go and not going to hurt me in the long run.
thanks for your feedback.