Hi, I'm starting to write functions that return data from my db.
Im wondering in general if its faster to:
1. have a single query to retrieve all data once, with multiple joins to 5 tables, and then display data.
2. have multiple queries, each of which only grab data from a single table each.
I heard that joins decrease performance a lot, so which would actualyl be better?
Appreciate any help! Thanks...
Im wondering in general if its faster to:
1. have a single query to retrieve all data once, with multiple joins to 5 tables, and then display data.
2. have multiple queries, each of which only grab data from a single table each.
I heard that joins decrease performance a lot, so which would actualyl be better?
Appreciate any help! Thanks...