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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -