MySQL Forums
Forum List  »  Memory Storage Engine

How to get size of memory table??
Posted by: Shantonu Hossain
Date: May 10, 2007 05:40AM

hello,

i have an memory table which has 10K rows and uses 2 hash index. I've found in the documentation tht, memory needed for one row is -

SUM_OVER_ALL_BTREE_KEYS(max_length_of_key + sizeof(char*) × 4)
+ SUM_OVER_ALL_HASH_KEYS(sizeof(char*) × 2)
+ ALIGN(length_of_row+1, sizeof(char*))

then what will be the size of my table? do i need 'SUM_OVER_ALL_BTREE_KEYS(max_length_of_key + sizeof(char*) × 4)' as i have only hash keys?

thanks in advance :)

Shantonu

Options: ReplyQuote


Subject
Views
Written By
Posted
How to get size of memory table??
7775
May 10, 2007 05:40AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.