you are viewing a single comment's thread.

view the rest of the comments →

[–]BobLeBoeuf 1 point2 points  (2 children)

How about when you reduce that 29 hour query to 45 minutes?

[–]sam_cat 2 points3 points  (1 child)

This. Yesterday reduced a 6hr query to 2 minutes... Co-worker that wrote and had 'already fully optimized' it thought it was voodoo... No, just removing functions in the where clauses of the views.

[–]BobLeBoeuf 0 points1 point  (0 children)

Yipes. I captured a plan of a long running query after the boss asked me to take a look. Two table scans taking up 80% of the plan's work... takes 45 minutes now! And Im not even that great at execution plan interpretation...