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 > Performance tuning in Informix

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-31-09, 18:12
saurabhr saurabhr is offline
Registered User
 
Join Date: Aug 2009
Posts: 1
Performance tuning in Informix

Hi

I have a query which selects data from two views, view1 view2.

first time when i execute the query, it returns the result in fraction of seconds.

However, when I run the query again, 2nd time onwards, the performance is very slow and it takes around 10 secs to get the result...

I tried creating indexes on the tables from which the views are fetching data, but it was of no use..

Kindly suggest me some solution


Thanks and Regards
Reply With Quote
  #2 (permalink)  
Old 09-01-09, 08:31
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #3 (permalink)  
Old 09-21-09, 14:24
gtobares gtobares is offline
Registered User
 
Join Date: Jun 2005
Location: Santa Fe, Argentina
Posts: 27
Yes, set de sqexplain and send us them. you must write a sql code like
" database xx; set explain on; your queries; set explain off".

You must find a file named "sqexplain.out" with de "optimizer path". These file may help to find (and solve) the problem. bye.
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