Hello,
I am working on a query that has 11 left join statements, some are hitting against reference data that has a small amount of records, whereas others not so small. From a performance standpoint, should I look at rewriting this query, and how would I do so? What is an alternative to left joins; any examples anyone has?
Thanks.
The alternative to a join is a subquery. Google "Join or subquery" for information in which performs better. Loads of different opinions, but it would appear that only testingyourquery inyourenvironment will produce the right answer foryou.|||
bmains:
From a performance standpoint, should I look at rewriting this query
I would say that it depends on whether your query is performing poorly or not. I wouldn't touch it if it isn't broken
No comments:
Post a Comment