posted 19 years ago
Hi guys & gals,
I've a query on performance issue that hopefully you'll could share with me your experiences & knowledge.
Lets say I were to create a view to aggregrate a few tables together, then perform a query on the view with a few conditions.
Suppose instead of creating the view, I still keep all the select & joins statements, then I append the same conditions to it, will this approach yield the same performance or would it be better or worse than the view method?
I was told that by using the view, the database would actually query all the data from all the tables involved, then only the database will use the conditions to filter the results further. And this actually is not as good as the 2nd method.
What do you guys think? Or do you've a better approach to handle such performance issues?
Many thanks for sharing & helping.
SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8