Although the question title is duplicate of many discussions, I did not find a answer to this question:
Consider a simple join for normalized tables of tags as
SELECT tags.tag
FROM tags
INNER JOIN tag_map
ON tags.tag_id=tag_map.tag_id
WHERE article_id=xx
Does JOIN
work with the entire tables of tags and tag_map then filter the created (JOIN
ed) table to find rows with WHERE
clause for the article id
OR JOIN
will only join rows of tag_map table in which article_id=xx ?
The latter method should be quite faster!