If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
In this when ever i submit a query it takes a long time to execute .
"SELECT value FROM GEMS.PM_MASTER_RAW WHERE asset LIKE 'C_AC1xL_S001xEC_01' AND pointpath like 'C%KW' AND orgname LIKE 'ACME' AND timestamp between '2011-02-01 09:00:00' AND '2011-02-01 10:00:00' "
For having some direction towards solving your issue, first request, take two DB Snapshot taken from the Database before the query is triggered and after the query got executed. There can be hundreds of reason for a slow running query, but to start with discussing for solution, lets see your snapshot first.
__________________
Jayanta Datta
DB2 UDB DBA
IBM India, Global Delivery
New Delhi