Unix Technical Forum

Re: UPDATE STATISTICS

This is a discussion on Re: UPDATE STATISTICS within the Informix forums, part of the Database Server Software category; --> Updates statistics for each column in the table. If your version is older than 7.31UD2 or 9.30 [not certain ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 07:29 PM
Mark Denham
 
Posts: n/a
Default Re: UPDATE STATISTICS


Updates statistics for each column in the table. If your version is older
than 7.31UD2 or 9.30 [not certain for 9] I think you will find that the
table is read multiple times, once for each col in the table.

This would explain the astronomical increase in the runtime.

Mark

----- Original Message -----
From: "Thomas J. Girsch" <tgirsch@worldnet.att.net>
To: <informix-list@iiug.org>
Sent: Thursday, August 21, 2003 21:12
Subject: UPDATE STATISTICS


> Imagine a table tab1 with a bazillion rows and five columns. There is one
> index on the table, on column A.
>
> If I do:
>
> UPDATE STATISTICS LOW FOR TABLE tab1(col_a);
>
> ... it runs very quickly. But if I just do:
>
> UPDATE STATISTICS LOW FOR TABLE tab1;
>
> ... it takes hours, maybe days. So what exactly does the latter command

do,
> that the former command does NOT do?
>
>


sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com