I create a website for films ... I need to show information about each film, including genres, actors and a lot of information (IMDB.com) ...
I created a movie table, including an identifier and some basic information. For genres, I created a table of "genres" that includes 2 columns: ID and genre. Then I use the "genres2movies" table with two columns: movieID and genreID to join between genres and movie tables ...
Thus, for example, if a movie has 5 different genres, I get a movieID in 5 different rows of the "genres2movies" table. This is better than including a genre every time for every movie, but ...
There is a better way to do this.
I need to do this also for actors, languages, and countries, so performance and database size are really important.
Thanks!!!
source
share