update statistics
Posted in 2006
Topics: Platform-Specific Issues, Versions, Editions & End-of-Life
Hi, What are the best pratices to run update statistics? having: IBM p520 4 cpu's 16Gb AIX 5.3 IDS 9.40.FC8 tks Henrique Lima henrique_lima_2000@yahoo.com.br henriquelima@uol.com.br _______________________________________________________ Você quer respostas para suas perguntas? Ou você sabe muito e quer compartilhar seu conhecimento? Experimente o Yahoo! Respostas ! http://br.answers.yahoo.com/
I like to to the following:
update statistics low for <table> (<columns>);
-- where <columns> are all columns that are in an index
update statistics medium for <table> (<columns>) distributions only;
-- where <columns> are all columns of a table that do not appear
-- in the next update statistics high statement
update statistics high for <table> (<columns>) distributions only;
-- where <columns> are columns that head indexes or columns that are
-- the first differing column of composite indexes that start with the same
-- subset of columns and optionally columns frequently used to join two tables
Enable PDQPRIORITY and export PSORT_NPROCS to something reasonable for
improved performance.
Bonus: The statements can be run in parallel.
If you want to make life easy on yourself, get Art Kagel's dostats utility
from iiug.org.
Andrew Ford
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of henrique
li....
Sent: Wednesday, August 09, 2006 9:26 AM
To: ids@iiug.org
Subject: update statistics [7246]
Hi,
What are the best pratices to run update statistics? having:
IBM p520 4 cpu's 16Gb AIX 5.3
IDS 9.40.FC8
tks
Henrique Lima
henrique_lima_2000@yahoo.com.br
henriquelima@uol.com.br
_______________________________________________________
Você quer respostas para suas perguntas? Ou você sabe muito e quer
compartilhar seu conhecimento? Experimente o Yahoo! Respostas !
http://br.answers.yahoo.com/
*******************************************************************************
Forum Note: Use "Reply" to post a response in the discussion forum.
Take a look at Art Kagel's dostats package at iiug.org. Check c.d.i / Informix forums on the matter. J. henrique li.... escribió: > Hi, > What are the best pratices to run update statistics? having: > > IBM p520 4 cpu's 16Gb AIX 5.3 > IDS 9.40.FC8 > > tks > Henrique Lima > > henrique_lima_2000@yahoo.com.br > henriquelima@uol.com.br > > _______________________________________________________ > Você quer respostas para suas perguntas? Ou você sabe muito e quer > compartilhar seu conhecimento? Experimente o Yahoo! Respostas ! > http://br.answers.yahoo.com/ > > > ******************************************************************************* > Forum Note: Use "Reply" to post a response in the discussion forum. > >
Read 2 documents: The Informix Performance Guide and John Miller III's white paper about the latest internal optimizations to the update statistics processing inside the engine in later releases (you have an optimized version). John's paper is at: http://www.ibm.com/developerworks/db2/zones/informix/library/techarticle/miller/ 0203miller.html Or, as someone suggested, you can just get my dostats utility which implements these protocols with many configuration options. Dostats is contained in the package utils2_ak available for download in the IIUG Software Repository. Art S. Kagel ----- Original Message ----- From: Henrique Li.... <ids@iiug.org> At: 8/09 9:31:09 Hi, What are the best pratices to run update statistics? having: IBM p520 4 cpu's 16Gb AIX 5.3 IDS 9.40.FC8 tks Henrique Lima henrique_lima_2000@yahoo.com.br henriquelima@uol.com.br _______________________________________________________ Você quer respostas para suas perguntas? Ou você sabe muito e quer compartilhar seu conhecimento? Experimente o Yahoo! Respostas ! http://br.answers.yahoo.com/ ******************************************************************************* Forum Note: Use "Reply" to post a response in the discussion forum.