SQL: multiple queries vs joins (specific case) -
this question seems have been asked lot , answer seems "it depends on details". asking specific case: better me have multiple queries or use joins?
the details follows:
- "products" table -- around 2000 rows, 15 or columns
- "tags" table -- around 10 rows, 3 columns
- "types" table -- around 10 rows, 3 columns
i need "tags" , "types" table tag/type-id in product table.
my gut says if join tables end searching much larger set better multiple queries, not sure...
thoughts?
no, join outperform multiple queries. tables extremely small.
Comments
Post a Comment