dbTalk Databases Forums  

Clearing the complete flag

comp.databases.ingres comp.databases.ingres


Discuss Clearing the complete flag in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roy Hann
 
Posts: n/a

Default Clearing the complete flag - 11-12-2009 , 07:44 AM






Apart from hacking the scomplete flag in iistatistics is there a
"respectable" way to clear the complete flag on an attribute?

--
Roy

UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010
Go to http://www.iua.org.uk/join to get on the mailing list.

Reply With Quote
  #2  
Old   
Jean-Pierre Zuate, La Fage Conseil
 
Posts: n/a

Default Re: [Info-Ingres] Clearing the complete flag - 11-12-2009 , 08:11 AM






Hi Roy,

does it mean your stats are collected with the [optimizedb] -zw flag ?
See http://docs.ingres.com/Ingres/9.2/Co...bcmd.htm#o1231

Stats are supposed, by default, "not complete", till the -zw flag is used.

Except deleting stats with statdump and recreate them without this
flag, I don't know ...

HTH ... (but not sure at all).
--
Jean-Pierre Zuate
La Fage Conseil
+33(0)6 11 40 11 09
jean-pierre.zuate (AT) lafageconseil (DOT) fr
http://lafageconseil.fr/



2009/11/12 Roy Hann <specially (AT) processed (DOT) almost.meat>:
Quote:
Apart from hacking the scomplete flag in iistatistics is there a
"respectable" way to clear the complete flag on an attribute?

--
Roy

UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010
Go to http://www.iua.org.uk/join to get on the mailing list.


_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://ext-cando.kettleriverconsulti...fo/info-ingres

Reply With Quote
  #3  
Old   
Roy Hann
 
Posts: n/a

Default Re: [Info-Ingres] Clearing the complete flag - 11-12-2009 , 08:39 AM



Jean-Pierre Zuate, La Fage Conseil wrote:

Quote:
Hi Roy,

does it mean your stats are collected with the [optimizedb] -zw flag ?
Yep, that's the one I mean.

Quote:
See http://docs.ingres.com/Ingres/9.2/Co...bcmd.htm#o1231

Stats are supposed, by default, "not complete", till the -zw flag is used
Well just for clarity, "complete" doesn't refer to the statistics, it
refers to the set of values in the column. If you have a master-detail
relationship then the master key column is complete with respect to the
detail foreign key column; i.e. "complete" implies a referential
integrity constraint. It discourages the optimizer from
underestimating the cardinality of the join. (I don't think the
way the complete flag is interpreted is quite right, but it is helpful
more often than it's harmful, I find.)

Quote:
Except deleting stats with statdump and recreate them without this
flag, I don't know ...
Thanks Jean-Pierre, I was afraid that is the case.

--
Roy

UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010
Go to http://www.iua.org.uk/join to get on the mailing 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.