home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / informix / 2381 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.7 KB

  1. Path: sparky!uunet!gossip.pyramid.com!pyramid!infmx!davek
  2. From: davek@informix.com (David Kosenko)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Estimating sizes of indexes
  5. Message-ID: <1992Nov11.151731.7281@informix.com>
  6. Date: 11 Nov 92 15:17:31 GMT
  7. References: <2AFFE3CA.81BE@tct.com>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 26
  11.  
  12. Jim Kunzman writes:
  13. >Informix provides very useful tools for estimating sizes of rows in
  14. >a table.  Perhaps I've overlooked it, but I can find nothing about
  15. >estimating sizes for indexes.  In other words, given table X with
  16. >indexes A, B, and C, how much overhead is required for each additional
  17. >row in table X?
  18. >
  19. >Can this be done easily?  Is there somewhere in the documentation where
  20. >this is covered?  Is there any difference in overhead for SE and Online
  21. >(unfortunately, we have to support both)?
  22.  
  23. For OnLine, this is covered (in the Guide to SQL Tutorial, pg 10-16) under
  24. Estimating Index Pages.   There is some difference between SE and OnLine -
  25. to keep it simple, consider SE's "page size" to be 1K (since index "nodes"
  26. are 1 page in OnLine and 1K in SE).  The resulting number is really an
  27. approximation, since it is impossible to accurately predict b+tree
  28. overhead without knowing how and when the keys were inserted, exactly how
  29. many duplicates of each key (when applicable) etc., but it can get you
  30. pretty much in the ballpark.
  31.  
  32. Dave
  33. -- 
  34. Disclaimer: These opinions are not those of Informix Software, Inc.
  35. **************************************************************************
  36. "I look back with some satisfaction on what an idiot I was when I was 25,
  37.  but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
  38.