dbTalk Databases Forums  

Update statistics for table with more then 2^31 records

comp.databases.informix comp.databases.informix


Discuss Update statistics for table with more then 2^31 records in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alexey Sonkin
 
Posts: n/a

Default Update statistics for table with more then 2^31 records - 06-22-2007 , 01:29 PM






Hi, everybody,



We've run into a funny problem with our DataWarehouse database:

update statistics HIGH and MEDIUM doesn't work for tables with more

then 2^31 = 2147483648 records (no need to say, that table is
fragmented)



Operation finishes immediately without any error, and doesn't create any
SYSDISTRIB record.



Also, SYSTABLES always gives 2^31-1 records for big tables: NROWS is of
type INT4...

One can conclude, that 'update statistics' was never supposed to work
for bigger tables.



I've filed a PMR to IBM 'passport advantage' support



-------------------------

Alexey Sonkin





Reply With Quote
  #2  
Old   
scottishpoet
 
Posts: n/a

Default Re: Update statistics for table with more then 2^31 records - 06-25-2007 , 05:51 AM






http://www-1.ibm.com/support/search....Go.x=49&Go.y=8


Reply With Quote
  #3  
Old   
Art S. Kagel
 
Posts: n/a

Default Re: Update statistics for table with more then 2^31 records - 06-25-2007 , 08:18 AM



On Jun 22, 2:29 pm, "Alexey Sonkin" <alex... (AT) cidc (DOT) com> wrote:
Quote:
Hi, everybody,

We've run into a funny problem with our DataWarehouse database:

update statistics HIGH and MEDIUM doesn't work for tables with more

then 2^31 = 2147483648 records (no need to say, that table is
fragmented)

Operation finishes immediately without any error, and doesn't create any
SYSDISTRIB record.

Also, SYSTABLES always gives 2^31-1 records for big tables: NROWS is of
type INT4...
Yes, but the nrows in systables is not used for anything on a
fragmented table, it would be the nrows in sysfragments for each
fragment instead. In any event, since these values are UPDATED by
update statistics, it's actually the NROWS values in sysptnhdr, which
is also by fragment, that is used to calculate bucket sizes, etc.
This is just to note that the fact that these fields are INT4 is
irrelevant. There seems, as ScottishPoet pointed out with his link,
there's a bug in UPDATE STATISTICS MEDIUM in certain releases for
larger tables. Try using HIGH for now, and definitely follow up with
your Tech support call and give them the bug number noted in the link.

Art S. Kagel

Quote:
One can conclude, that 'update statistics' was never supposed to work
for bigger tables.

I've filed a PMR to IBM 'passport advantage' support


Reply With Quote
  #4  
Old   
Alexey Sonkin
 
Posts: n/a

Default RE: Update statistics for table with more then 2^31 records - 06-25-2007 , 11:35 AM



Thank you,

IBM support engineer has just told me exactly same thing -
problem is addressed in 10.0FC7 and in Cheetah.

BTW, SYSTABLES.NROWS has FLOAT type in Cheetah...

-Alexey


Quote:
-----Original Message-----
From: informix-list-bounces (AT) iiug (DOT) org
[mailto:informix-list-bounces (AT) iiug (DOT) org]
On Behalf Of scottishpoet

http://www-

1.ibm.com/support/search.wss?rs=634%2B630%2B633%2B632%2B635%2B631&tc =SSG
U5D%2B
Quote:
SSGU8G%2BSSGKNY%2BSSGU5Y%2BSSCRW7%2BSSGHZP&q=IC529 85&Go.x=49&Go.y=8


Reply With Quote
  #5  
Old   
Nita Dembla
 
Posts: n/a

Default Re: Update statistics for table with more then 2^31 records - 06-25-2007 , 12:02 PM



Various issues with update statistics on large tables have been fixed in
versions 9.40.xC9, 10.00xC6 and Cheetah. See following APAR's

For 9.40.xC9:
http://www-1.ibm.com/support/search....-search=Search
For 10.00xC6:
http://www-1.ibm.com/support/search....-search=Search

In 9.40xC9 and 10.00xC6, if an overflow occurs, the following columns have
been rounded off to their maximum value (2^31). In Cheetah, a complete fix
has been introduced and these columns have been changed from integer type
to double type.

systables: nrows, npused
sysindices: nleaves, nunique, clust
sysfragments: nrows, npused

Regards,
Nita.




"Art S. Kagel" <art.kagel (AT) gmail (DOT) com>
Sent by: informix-list-bounces (AT) iiug (DOT) org
06/25/2007 09:18 AM

To
informix-list (AT) iiug (DOT) org
cc

Subject
Re: Update statistics for table with more then 2^31 records






On Jun 22, 2:29 pm, "Alexey Sonkin" <alex... (AT) cidc (DOT) com> wrote:
Quote:
Hi, everybody,

We've run into a funny problem with our DataWarehouse database:

update statistics HIGH and MEDIUM doesn't work for tables with more

then 2^31 = 2147483648 records (no need to say, that table is
fragmented)

Operation finishes immediately without any error, and doesn't create any
SYSDISTRIB record.

Also, SYSTABLES always gives 2^31-1 records for big tables: NROWS is of
type INT4...
Yes, but the nrows in systables is not used for anything on a
fragmented table, it would be the nrows in sysfragments for each
fragment instead. In any event, since these values are UPDATED by
update statistics, it's actually the NROWS values in sysptnhdr, which
is also by fragment, that is used to calculate bucket sizes, etc.
This is just to note that the fact that these fields are INT4 is
irrelevant. There seems, as ScottishPoet pointed out with his link,
there's a bug in UPDATE STATISTICS MEDIUM in certain releases for
larger tables. Try using HIGH for now, and definitely follow up with
your Tech support call and give them the bug number noted in the link.

Art S. Kagel

Quote:
One can conclude, that 'update statistics' was never supposed to work
for bigger tables.

I've filed a PMR to IBM 'passport advantage' support
_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/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.