dbTalk Databases Forums  

create indexes vs enable indexes

comp.databases.informix comp.databases.informix


Discuss create indexes vs enable indexes in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mohitanchlia@gmail.com
 
Posts: n/a

Default create indexes vs enable indexes - 06-18-2007 , 07:27 PM






if somebody could throw some light, if creating indexes are better
than enabling indexes. Also does update stats work better with
creating
indexes or when indexes are enabled.


Reply With Quote
  #2  
Old   
Jack Parker
 
Posts: n/a

Default RE: create indexes vs enable indexes - 06-18-2007 , 08:26 PM







I was trying to avoid a lengthy discussion, but I guess nobody else is
jumping in.

I think what you are asking is whether it is better to disable an index,
load a bunch of data, and then enable the index. The answer is, of course,
that it depends. If you are going to push a lot of data into the table,
then it will be quicker to re-create the index. If we are talking one or
two rows, then what is the point of disabling the index?

Your update statistics question is unclear. Having an index will not
improve the performance of update statistics. The guidelines call for
updating statistics high on columns which are indexed. I would check out
ak_util from the iiug site for a guide from the master on this topic.

Cheetah has a feature where statistics are gathered while the index is being
created, thus obviating the need to update stats after the index creation.

j.

-----Original Message-----
From: informix-list-bounces (AT) iiug (DOT) org
[mailto:informix-list-bounces (AT) iiug (DOT) org]On Behalf Of
mohitanchlia (AT) gmail (DOT) com
Sent: Monday, June 18, 2007 8:27 PM
To: informix-list (AT) iiug (DOT) org
Subject: create indexes vs enable indexes


if somebody could throw some light, if creating indexes are better
than enabling indexes. Also does update stats work better with
creating
indexes or when indexes are enabled.

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


Reply With Quote
  #3  
Old   
Fernando Nunes
 
Posts: n/a

Default Re: create indexes vs enable indexes - 06-19-2007 , 05:05 PM



Jack Parker wrote:

Quote:
Cheetah has a feature where statistics are gathered while the index is being
created, thus obviating the need to update stats after the index creation.
Some statistics are gathered. Not all that a column with an index should have...

--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...


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

Default Re: create indexes vs enable indexes - 06-20-2007 , 06:39 PM



On 19 Jun, 23:05, Fernando Nunes <s... (AT) domus (DOT) online.pt> wrote:
Quote:
Jack Parker wrote:
Cheetah has a feature where statistics are gathered while the index is being
created, thus obviating the need to update stats after the index creation.

Some statistics are gathered. Not all that a column with an index should have...

--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
So this feature that was ported from DB2 is crap then? Typically half-
baked implmentation from another product.

Why does it not built everything if it has read and sorted the columns
already?



Reply With Quote
  #5  
Old   
Fernando Nunes
 
Posts: n/a

Default Re: create indexes vs enable indexes - 06-21-2007 , 03:21 AM



david (AT) smooth1 (DOT) co.uk wrote:
Quote:
On 19 Jun, 23:05, Fernando Nunes <s... (AT) domus (DOT) online.pt> wrote:
Jack Parker wrote:
Cheetah has a feature where statistics are gathered while the index is being
created, thus obviating the need to update stats after the index creation.
Some statistics are gathered. Not all that a column with an index should have...

--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...

So this feature that was ported from DB2 is crap then? Typically half-
baked implmentation from another product.

Why does it not built everything if it has read and sorted the columns
already?

Err... this is hardly a "feature that can be ported". The way statistics are
gathered and represented is completely different. You may say the idea was
ported... I don't know... But in this case it was not necessarily from DB2. I
imagine most databases do this... or should do...

As for your specific question, the definition of what are the statistics that a
column "should" have is not absolute... It really depends on the column, the
data and the queries.. It collects medium distributions for the column heading
and index... And LOW for the index itself...
It does not collect distributions for other columns in the index... And you may
like distributions in high mode for the heading column...

For more information about the modes and best practices please check the
performance guide.

This area will hopefully see more autonomic stuff in the future...

--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...


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.