dbTalk Databases Forums  

OPTCOMPIND

comp.databases.informix comp.databases.informix


Discuss OPTCOMPIND in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Colin Dawson
 
Posts: n/a

Default OPTCOMPIND - 08-17-2005 , 02:56 AM







Apologies if this has been discussed before.....

I'm interested in people's opinions on what they have set this parameter to
for OLTP systems and why they used that setting. I'm not interested in what
the parameter means, I know that, I can RTFM as well as anybody.

FYI: I am using 0 on one system and 2 on another and there doesn't seem to
be any noticable degradation in response times, query times are very similar




Regards

Colin

There are 10 types of people in the world, those that understand binary and
those that don't


sending to informix-list

Reply With Quote
  #2  
Old   
Dirk Moolman
 
Posts: n/a

Default RE: OPTCOMPIND - 08-17-2005 , 04:04 AM








-----Original Message-----
From: owner-informix-list (AT) iiug (DOT) org [mailtowner-informix-list (AT) iiug (DOT) org]
On Behalf Of Colin Dawson
Sent: 17 August 2005 09:57 AM
To: informix-list (AT) iiug (DOT) org
Subject: OPTCOMPIND

Quote:
Apologies if this has been discussed before.....

I'm interested in people's opinions on what they have set this
parameter to
for OLTP systems and why they used that setting. I'm not interested in
what
the parameter means, I know that, I can RTFM as well as anybody.

FYI: I am using 0 on one system and 2 on another and there doesn't seem
to
be any noticable degradation in response times, query times are very
similar

My systems are set to 2, after testing it. When we upgraded a while
back, I tried both 0 and 2, and 0 proved to be very slow on my specific
system (running on 7.31 FD3)

sending to informix-list


Reply With Quote
  #3  
Old   
Superboer
 
Posts: n/a

Default Re: OPTCOMPIND - 08-17-2005 , 04:46 AM



oltp use optcompind=0!!!

if small table with indexes and current stats you will get index
lookups. if set to 2 the optimizer may choose seq scans causing locking
problems etc.
and when your table grows and you do not run update stats it still will
seq scan causing perf problems.

so 0 for otlp

Superboer


Reply With Quote
  #4  
Old   
Ben Thompson
 
Posts: n/a

Default Re: OPTCOMPIND - 08-17-2005 , 05:44 AM



Colin Dawson wrote:
Quote:
Apologies if this has been discussed before.....

I'm interested in people's opinions on what they have set this parameter to
for OLTP systems and why they used that setting. I'm not interested in what
the parameter means, I know that, I can RTFM as well as anybody.

FYI: I am using 0 on one system and 2 on another and there doesn't seem to
be any noticable degradation in response times, query times are very similar
Some time ago I tested altering OPTCOMPIND on a IDS 7.31.UC5 system
running on AIX 4 with our OLTP application and I found that the 0
setting was significantly faster than the 2 setting, at least 10% faster
as I recall. Clearly it will depend on the queries you run. I've not
revisited it since we started using 9.30, 9.40 and now 10.00.

Ben.


Reply With Quote
  #5  
Old   
Dirk Moolman
 
Posts: n/a

Default RE: OPTCOMPIND - 08-17-2005 , 07:16 AM





-----Original Message-----
From: owner-informix-list (AT) iiug (DOT) org [mailtowner-informix-list (AT) iiug (DOT) org]
On Behalf Of Superboer
Sent: 17 August 2005 11:46 AM
To: informix-list (AT) iiug (DOT) org
Subject: Re: OPTCOMPIND

Quote:
oltp use optcompind=0!!!

if small table with indexes and current stats you will get index
lookups. if set to 2 the optimizer may choose seq scans causing locking
problems etc.
and when your table grows and you do not run update stats it still will
seq scan causing perf problems.

so 0 for otlp

Superboer


My system is OLTP, and 0 just brings my system to a grinding halt


sending to informix-list


Reply With Quote
  #6  
Old   
david@smooth1.co.uk
 
Posts: n/a

Default Re: OPTCOMPIND - 08-17-2005 , 01:43 PM




I set to to 0. I have seen loads of questions on here in the past
about
upgrading to IDS and finding everything running slowly.

It appears that sometimes even though 2 should mean least cost the
optimizer
gets it wrong and will not use indexes. Setting OPTCOMPIND to 0 avoids
these problems. It may work ok for a while and then in production you
find
a query that suddenly takes forever since the optimizer is not using an
index.

Personally I think the optimizer is buggy and settting to 0 avoids
these bugs.
It make work most of the time but then you hit a problem and
performance
nosedives.


Reply With Quote
  #7  
Old   
Jean Sagi
 
Posts: n/a

Default Re: OPTCOMPIND - 08-19-2005 , 06:43 AM




I've seen cases to support this.

Not much ones I admit.


J.

david (AT) smooth1 (DOT) co.uk escribis:
Quote:
...
Personally I think the optimizer is buggy ...
sending to informix-list


Reply With Quote
Reply




Thread Tools
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.