For example, if I have a BlogPosts
table, and a PostCategory
table, where the BlogPosts
table has a FK field PostCategoryId
. Would a relationship make the query faster, or is it more of a data quality thing?
What about when a join table is involved? Take the PostCategoryId
field out of the BlogPosts
table, and have a table "between" them called PostsInCategories
, which has only 2 FK fields: BlogPostId
and PostCategoryId
, combined for form a PK.
Do relationships improve queries there?