In MySQL, I use the method below to calculate the size of a specific table. It is shown as below:
mysql> use information_schema;
mysql> select table_name,table_rows,data_length+index_length,concat(round((data_length+index_length)/1024/1024,2),‘MB’) data from tables where table_schema=‘test’ and table_name=‘loan’;
±-----------±-----------±-------------------------±-------+
| table_name | table_rows | data_length+index_length | data |
±-----------±-----------±-------------------------±-------+
| loan | 5 | 16384 | 0.02MB |
±-----------±-----------±-------------------------±-------+
1 row in set (0.01 sec)
However, in memsql, this method doesn’t seems to work.
So, how to deal with this thing?