If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Update statistic high??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Jun 2004
Location: Madrid
Posts: 14
Wink Update statistic high??

Hi,

To optimize my sql queries, i execute UPDATE STATISTIC HIGH for the entire database. I do not do it specifically for large table.

My question is:
What is the difference between the two instructions listed below and which is more efficient?

1- UPDATE STATISTIC HIGH
2- UPDATE STATISTIC HIGH for TABLE
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Sep 2011
Location: Pont l'Abbé, Brittany, France
Posts: 345
Oh,

I think I know your nickname :-)

My understanding is that Update Statistics High will build statistics for all the tables and stored procedures and functions, and UPDATE STATISTICS FOR TABLE, only for the tables .

Doing this way will give you accurate statistics, but probably a bit excessive in the sense that you probably do not need HIGH statistics for all the columns in all the tables.

This can make the UPDATE STATISTICS command very or too long to execute.

Check Version 12.10 and the AUS options, which allows you to define a threshold on which the engine will consider necessary to recalculate the statistics for a table.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On