If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Index size estimation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-11, 06:59
ncd ncd is offline
Registered User
 
Join Date: Aug 2011
Posts: 2
Index size estimation

Hi,

Can someone please help me out to calculate the index size. I checked using dbschema -d dbname -t tblname. I could see the index size value. Is this right method to determine the index size or is there any other menthod to estimate the index size

Thanks
Reply With Quote
  #2 (permalink)  
Old 08-08-11, 14:30
mjldba mjldba is offline
Registered User
 
Join Date: Dec 2003
Location: North America
Posts: 139
you can try using oncheck -pt <db_name>:<db_owner>.<table_name> <cr> from the command line and you'll see a section of values for each index after the data section of the output. Though you can specify an First extent size and next extent size when creating a table, I don't know how the First extent size and next extent size values are derived for indexes.

AIX_production > oncheck -pt FIN8.4_Live:sysadm.ps_employee <cr>

In the section for each index you'll see values called "Number of Pages Allocated" and "Number of Pages Used", so use whichever value is more meaningful to you and multiply by the page size (AIX has 4k pages) and you'll have a pretty good idea how much space each index is using.
Reply With Quote
  #3 (permalink)  
Old 08-09-11, 00:30
ncd ncd is offline
Registered User
 
Join Date: Aug 2011
Posts: 2
Re:

Thanks a lot for your reply . I have a clarification here . No of data pages mentioned in the oncheck command doesnt match with the index size fetched using dbschema command. What is the significance of index size value which is reported using dbschema calculated.
Reply With Quote
  #4 (permalink)  
Old 08-09-11, 08:32
mjldba mjldba is offline
Registered User
 
Join Date: Dec 2003
Location: North America
Posts: 139
Sorry to say I have no idea what "index size" refers to in the output returned from running dbschema on a table, I've never paid any attention to it because I've always used oncheck.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On