Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 16:09
dicipulofer dicipulofer is offline
Registered User
 
Join Date: Oct 2007
Posts: 35
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, 20:11
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Distrito Federal - Brasil
Posts: 197
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
Distrito Federal - Brasil
________________________________________
Reply With Quote
  #3 (permalink)  
Old 02-01-08, 13:09
gtobares gtobares is offline
Registered User
 
Join Date: Jun 2005
Location: Santa Fe, Argentina
Posts: 17
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

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