Unix Technical Forum

update statistics and update index statistics

This is a discussion on update statistics and update index statistics within the Sybase forums, part of the Database Server Software category; --> 12.5.0.3 Is there any reason why update statistics works ok but update index statistics runs out of space on ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 04:10 PM
Movilla Martin
 
Posts: n/a
Default update statistics and update index statistics

12.5.0.3
Is there any reason why update statistics works ok but update index
statistics runs out of space on tempdb? I'm migrating and am trying to work
out what works for a very large table.

Martin


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 04:10 PM
Rob Verschoor
 
Posts: n/a
Default Re: update statistics and update index statistics

"Movilla Martin" <postmaster@SPAMIGNOREmovilla.IGNOREplus.com> wrote
in message news:17MIb.7461$tQ6.77982@wards.force9.net...
> 12.5.0.3
> Is there any reason why update statistics works ok but update index
> statistics runs out of space on tempdb? I'm migrating and am trying

to work
> out what works for a very large table.
>
> Martin
>



This can happen: unlike 'update statistics', 'update index
statistics' needs to perform a sort operation: the latter needs to
sort the values of the non-leading index columns in order to make a
histogram, while the former only looks at the leading index column,
which by definition is already sorted in the index.
This sorting requires space in tempdb for a worktable, and for a
sufficiently large table you may not have enough of that.

Suggestion: try to use the new 'sampling' option for 'update
statistics' on large tables. This hould reduce your tempdb space
requirement as well as speed up the entire process.

HTH,

Rob
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5

Author of "Tips, Tricks & Recipes for Sybase ASE" and
"The Complete Sybase ASE Quick Reference Guide"
Online orders accepted at http://www.sypron.nl/shop

mailto:rob@YOUR.SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 04:10 PM
Movilla Martin
 
Posts: n/a
Default Re: update statistics and update index statistics

"Rob Verschoor" <rob@DO.NOT.SPAM.sypron.nl.REMOVE.THIS.DECOY> wrote in
message news:3ff54a4f$0$175$1b62eedf@news.wanadoo.nl...
> "Movilla Martin" <postmaster@SPAMIGNOREmovilla.IGNOREplus.com> wrote
> in message news:17MIb.7461$tQ6.77982@wards.force9.net...
> > 12.5.0.3
> > Is there any reason why update statistics works ok but update index
> > statistics runs out of space on tempdb? I'm migrating and am trying

> to work
> > out what works for a very large table.
> >

> Suggestion: try to use the new 'sampling' option for 'update
> statistics' on large tables. This hould reduce your tempdb space
> requirement as well as speed up the entire process.


Thanks Rob. I'm reading up on the white paper now.

Martin


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 07:56 AM.


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