home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / sybase / 620 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.7 KB  |  45 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!shearson.com!newshost!wfinnert
  3. From: wfinnert@larry.shearson.com (Warren Finnerty)
  4. Subject: Re: Sybase Data Page Allocation
  5. In-Reply-To: phil@n6batws1.itwol.bhp.com.au's message of 7 Jan 93 10:36:33 +1000
  6. Message-ID: <WFINNERT.93Jan7092037@larry.shearson.com>
  7. Sender: news@shearson.com (News)
  8. Organization: Lehman Brothers
  9. References: <1993Jan7.103634.268@vulcan.resmel.bhp.com.au>
  10. Date: Thu, 7 Jan 1993 14:20:37 GMT
  11. Lines: 32
  12.  
  13. In article <1993Jan7.103634.268@vulcan.resmel.bhp.com.au> phil@n6batws1.itwol.bhp.com.au (Phil McMillan) writes:
  14.  
  15.  
  16. >   I have a question regarding the allocation of the 2kbyte data pages when they
  17. >   become "reserved" by tables.
  18. >
  19. >   Assume I have a table that typically contains, say, 1000 rows.  If I then for some
  20. >   reason add an extra 30,000 rows I obviously will take more than a few data pages
  21. >   from the pool of storage (and at least 8 of them.)
  22.  
  23. >   From what I understand, these data pages (for indexes and rows) are now owned,
  24. >   or reserved, by the table.
  25.  
  26. >   If I delete these 30,000 rows, will/should these data pages become returned to
  27.    the pool?
  28.  
  29.  
  30. Yes.
  31.  
  32. If you have a clustered index on the table there should be no problem with
  33. freeing up space. However......
  34. Don't trust sysindexes unless DBCC checktable ( or checkdb ) gets run.
  35. If your deletes remove a percentage of the data from each page, but don't
  36. completely *no* space will be reclaimed because you have not freed 
  37. any pages up. Bottom line: Leave time every month or so to bounce your 
  38. clustered indexes down/up and things will be a lot cooler. 
  39.  
  40. --
  41. warren finnerty      | 388 Greenwich St.
  42. Lehman Brothers      | NYC NY 10013
  43. "Back off man!"      | wfinnert@shearson.com
  44.  
  45.