开发者

howto start table in mnesia?

开发者 https://www.devze.com 2023-01-29 22:35 出处:网络
I have situation when on开发者_如何学编程e of tables rich size 2G and after it I cannot work with this table,

I have situation when on开发者_如何学编程e of tables rich size 2G and after it I cannot work with this table,

'mynode@localhost' 5> mnesia:dirty_first(my_table). ** exited: {aborted,{badarg,[my_table]}} **

I understand I need apply fragmentation but how to do it in runtime? And main question is - howto start my_table to reduce its size in runtime? (i mean without restart mnesia)


What kind of data are you storing in mnesia ? From what I understand, you are trying to traverse your table , is it ? If you can decide on what will be the maximum amount of data that will be stored in your database , then you can predecide the number of fragments you need while creating the table.

Else if you need to reconfigure your already fragmented database, then check if the below link helps you :: http://www.erlang.org/doc/apps/mnesia/Mnesia_chap5.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号