dbTalk Databases Forums  

Sampling for Update Statistics

comp.databases.sybase comp.databases.sybase


Discuss Sampling for Update Statistics in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Wayne Happ
 
Posts: n/a

Default Sampling for Update Statistics - 01-22-2009 , 09:23 AM







Someone in the office gave me a paper from Sybase about update
statistics with sampling in 12.5.0.3. I guess in theory it's supposed
to run fater.

I've never heard of someone doing such a thing with this version of
Sybase. Does it actually work? I have many table with tens of millions
of rows for which it might be useful.

Reply With Quote
  #2  
Old   
mpeppler@peppler.org
 
Posts: n/a

Default Re: Sampling for Update Statistics - 01-23-2009 , 06:16 AM






On Jan 22, 4:23*pm, Wayne Happ <wayneh... (AT) earthlink (DOT) net> wrote:
Quote:
Someone in the office gave me a paper from Sybase about update
statistics with sampling in 12.5.0.3. I guess in theory it's supposed
to run fater.

I've never heard of someone doing such a thing with this version of
Sybase. Does it actually work? I have many table with tens of millions
of rows for which it might be useful.
I've done it quite a lot - it's useful for the "update index
statistics" form of the command (the sampling is only used for the non-
leading columns of the indexes), and really reduces the amount of
resources necessary. On large tables the histogram distribution when
using sampling (10%, or 5% or even 1% for very large tables) is
usually pretty close to the complete distribution, and so doesn't
really affect query optimization negatively.

Michael


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.