Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: RE: SQL Query optimization.

$
0
0
Author: Rohit Umarjikar
Posted: Tue Sep 06, 2016 5:06 am (GMT 5.5)

1. Avoid hitting the same query multiple times in the same call.
2.if the table is every day populated by a batch then insert or update a new row with the max count so that online don't have to do the same work again and again. This is what I guess Bill say's.
3. As long as you have a index you could try order by desc clause "with ur and fetch first 1 row only or optimize for 1 row only"
4.Look for OLAP, if that does the trick.
5 BMC cost is not true alway so try executing the query and see for issues
6 Have you spoken to DBA as yet?
_________________
Regards,
Rohit Umarjikar
"Knowledge is knowing that a tomato is a fruit, but Wisdom is knowing not to put it in a fruit salad."icon_razz.gif


Viewing all articles
Browse latest Browse all 8500

Trending Articles