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 > onconfig.std Doubt in one parameter

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-11-08, 15:09
dicipulofer dicipulofer is offline
Registered User
 
Join Date: Oct 2007
Posts: 55
onconfig.std Doubt in one parameter

# OPTCOMPIND
# 0 => Nested loop joins will be preferred (where
# possible) over sortmerge joins and hash joins.
# 1 => If the transaction isolation mode is not
# "repeatable read", optimizer behaves as in (2)
# below. Otherwise it behaves as in (0) above.
# 2 => Use costs regardless of the transaction isolation
# mode. Nested loop joins are not necessarily
# preferred. Optimizer bases its decision purely
# on costs.
OPTCOMPIND 2


I'm from Oracle database and I'm trying to learn about informix database. I'd like to say thanks for all that helped me at this moment

Well, I'd like understand, what's this parameter OPTCOMPIND....

My database's set to 2...

It's mean that all SQL executed in database will be process by costs ?

I'd like to put my database in statistics (like Oracle) It's possible ?


Thanks..

Att,
Fernando.
Reply With Quote
  #2 (permalink)  
Old 01-13-08, 19:11
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
This is exactly that!!!

With optcompind equal 2 will use the cost based on statistics.
But, on Informix you must manually start the process where gather the statistics. To do that , study about the SQL command UPDATE STATISTICS.

You found a lot information on the manuals. (the manuals are free for charge, and ALL are available to download on the IBM Informix Support site)
__________________
________________________________________
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 02-01-08, 12:09
gtobares gtobares is offline
Registered User
 
Join Date: Jun 2005
Location: Santa Fe, Argentina
Posts: 27
In www.iiug.org you can find scripts to "automate" the update statistics, they must follow the best or recommended practices to be successfull. They are very important, make the difference between work and not!

try to find some scripts like tbl_updstats or something like.
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