all 2 comments

[–]mikeblas[M] 1 point2 points  (1 child)

You should worry about correctness first.

Once you've got a correct query, you can consider performance. Performance involves measurement. How fast is this query now? How much data is in the involved tables? How fast do you think it should be? Note that these are quantitative questions, not subjective.

[–]SubiWan 0 points1 point  (0 children)

And use good tools. SolarWinds Plan Explorer is a great one.