Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to measure HEAP table size

Status
Not open for further replies.

marklenel

Technical User
Aug 29, 2003
46
GB
Can anyone suggest a method of measuring the size of a HEAP/MEMORY-type table? This would be useful to set an appropriate figure for the max_heap_table_size server variable.

I can create the table on disk rather than in memory and check the file size that way, but is there a more direct method?
 
To find out the data size for a table (including a HEAP table), you can do:
[tt] SHOW TABLE STATUS like 'tblname'[/tt]
The field Data_length contains the size of the table (not including indexes).



-----
ALTER world DROP injustice, ADD peace;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top