G
Guest
Hey folks, I have a quiz in my mind...
When u have a query that u have 3 ou 4 tables involved (tables), I figure
there r 2 solutions:
1) You write a SELECT for capturing fields in just one table, and then,
based on values of FKs fields, u then go gathering information (always based
on single SELECTs) in other tables.
2) You fire all in once 1 SELECT containing all the joins needed, bringing
all the fields needed.
Is 1st method so slower than second one? Currently I follow method 1, since
my framework I created to abstract data access does not work with joins...
When u have a query that u have 3 ou 4 tables involved (tables), I figure
there r 2 solutions:
1) You write a SELECT for capturing fields in just one table, and then,
based on values of FKs fields, u then go gathering information (always based
on single SELECTs) in other tables.
2) You fire all in once 1 SELECT containing all the joins needed, bringing
all the fields needed.
Is 1st method so slower than second one? Currently I follow method 1, since
my framework I created to abstract data access does not work with joins...