mysql - Sql join or separate queries -
i have movie database. keep images, videos, reviews, etc in separate tables. when movie viewed can use table joins , display output. possible separately. is, first query gets movie details, second gets pictures of movie, gets video of movie.
so should use?
table joins first joins tables , applies condition. having more overhead?
when use joins, mysql use temporary tables. general rule, if can avoid these, it. ought bunch of different queries , join them in memory.
Comments
Post a Comment