home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / informix / 1634 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.5 KB  |  49 lines

  1. Newsgroups: comp.databases.informix
  2. Path: sparky!uunet!haven.umd.edu!wam.umd.edu!dinguyen
  3. From: dinguyen@wam.umd.edu (Dzi Nguyen)
  4. Subject: Index Size
  5. Message-ID: <1992Jul30.222846.14964@wam.umd.edu>
  6. Originator: dinguyen@rac1.wam.umd.edu
  7. Sender: usenet@wam.umd.edu (USENET News system)
  8. Nntp-Posting-Host: wam.umd.edu
  9. Organization: University of Maryland at College Park
  10. Date: Thu, 30 Jul 1992 22:28:46 GMT
  11. Lines: 36
  12.  
  13. Hi netter,
  14. Does anyone know exactly how to calculate the total index size of a 
  15. particular table like you see when you do dbschema.  According to the 
  16. Informix Training 'Book', add 8 bytes to the length of each key, and then
  17. sum up all index entries, this should be the total index size.  But this
  18. never work unfortunately.
  19. ex:
  20. { TABLE "dnguyen".foo_tbl row size = 34 number of columns = 8 index size = 70 }
  21. create table "dnguyen".foo_tbl 
  22.   (
  23.     f1 serial not null,
  24.     f2 char(8) not null,
  25.     f3 char(1),
  26.     f4 char(6),
  27.     f5 char(1),
  28.     f6 char(1),
  29.     f7 char(1),
  30.     f8 char(12)
  31.   )
  32. create index "dnguyen".i_f1 on "dnguyen".foo_tbl (f8);
  33. create index "dnguyen".i_f23 on "dnguyen".foo_tbl (f2,f3);
  34. create index "dnguyen".i_f1 on "dnguyen".foo_tbl (f1);
  35. create index "dnguyen".i_f4 on "dnguyen".foo_tbl (f4);
  36.  
  37. thanx in advance...
  38.  
  39. ------------------------------------------------------------------------------
  40. CSC - Partner
  41. Dzi Nguyen
  42. dinguyen@wam.umd.edu
  43. ------------------------------------------------------------------------------
  44. -- 
  45.  
  46.  
  47.  
  48. **********************************************************
  49.