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 > Statistic HIGH MEDIUM LOW

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-08-08, 14:20
dicipulofer dicipulofer is offline
Registered User
 
Join Date: Oct 2007
Posts: 55
Statistic HIGH MEDIUM LOW

Hello,

I'd like to understand about Statistic...

Well, my doubts are :
1) I need run this sequence LOW MEDIUM AND HIGH statistic for the same table ??

2) What the difference between LOW, MEDIUM AND HIGH ?

3) IF i don't know the index from one table, and I run ex:

UPDATE STATISTICS HIGH FOR TABLE consumo_teorico DISTRIBUTIONS ONLY;

I got the same performance if I knew the index ???
Reply With Quote
  #2 (permalink)  
Old 08-09-08, 10:51
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
Cool

The manual (Performance Guide) say a lot things about guide lines to update statistics and have some articles on IBM site about this.
But, the basic guide lines are:
Medium and big tables:
- update statistics HIGH in head columns (first columns) from any index
- update statistics medium to another's columns where is part of a index
- update statistics medium to columns where is used to filter.
to small tables:
- update statistics high , all columns

Execute update statistics more frequently on tables where the data are modified frequently.
Example:
if you have a table with all move of a stock system , and all days have delete/inserts/updates on this table, consider executing the update statistics at least 1 time for week.


Link to All PDFs manuals , all versions, free of charge:
http://www-306.ibm.com/software/data...ubs/library/#3

Creating Data Distributions
http://publib.boulder.ibm.com/infoce...13query1-20817

Updating Statistics on Very Large Databases
http://publib.boulder.ibm.com/infoce...69%73%74%22%20

Updating Statistics for Join Columns
http://publib.boulder.ibm.com/infoce...69%73%74%22%20

Somes TechNotes from IBM Support Site:
http://www-1.ibm.com/support/search.....y=0&ibm-go=Go
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #3 (permalink)  
Old 08-09-08, 10:57
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
I forgot..

include on basic guide lines:
First : - update statistics LOW to all tables.
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #4 (permalink)  
Old 08-11-08, 10:31
dicipulofer dicipulofer is offline
Registered User
 
Join Date: Oct 2007
Posts: 55
I was thinking about u said..


Well, My big table has around 4 Million lines and Small tables 120 thousands lines..


My database isn`t 24 / 7, so I can put in crontab to run tonight...

If I put:

Medium and big tables: (4 Million)
- update statistics medium (all columns)

Hight to small tables: ( < 120.000)
- update statistics high (all columns )

Can I got best performance using that statistics ?

What do u think..
Reply With Quote
  #5 (permalink)  
Old 08-11-08, 10:58
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
This is very hard to say, this can variable in each environment.

but, my personal opinion, this is almost ok, missing only the update statistics low for all tables first , and the update statistics HIGH to all head index columns
Tip, when you put the update statistics , if no user are using the database, use the SET PDQPRIORITY 100 , and review your configurations of PDQ on your ONCONFIG. This will boost the time execution from your update statistics
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
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