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.

 
Go Back  dBforums > Database Server Software > Informix > How to determine the status of a query?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-12-11, 17:45
mlong30 mlong30 is offline
Registered User
 
Join Date: Oct 2007
Posts: 13
How to determine the status of a query?

Hi All,

I have a query that runs for about 10-30min to return results, and was wondering if I add this to a application, how can I determine how long the query has to complete so I can update my progress indicator to the user?

Thanks
Matt
InformixDb (9.52C1)

Last edited by mlong30; 08-12-11 at 18:09.
Reply With Quote
  #2 (permalink)  
Old 09-27-11, 15:36
begooden-it begooden-it is offline
Registered User
 
Join Date: Sep 2011
Location: Pont l'Abbé, Brittany, France
Posts: 183
Unhappy

Hi Matt,


as far as I know, there is no way to determine how long your query will take.
Nevertheless, you can have a good idea of the query plan if you include
"set explain on" before your query. it will write the detailed query plan
in a file called sqexplain.out in the place you run the query from. This is generally a great way to understand whether your query behaves well and a good indicator to how to enhance it.

On version 11.70, the explain file is even more detailed and takes execution time of all the steps of your queries.

But still no prediction on how long it will take
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On