Hi,<div><div><br></div><div>Currently I am creating the table in following steps:</div><div><br></div><div><font face="'courier new', monospace">mnesia:start(),</font></div><div><font face="'courier new', monospace">mnesia:create_schema([node()]),</font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">mnesia:create_table(guiding_data,</font></div><div><font face="'courier new', monospace">                         [</font></div>
<div><font face="'courier new', monospace">                           {attributes, record_info(fields, guiding_data)},</font></div><div><font face="'courier new', monospace">                           {ram_copies,[node()]}</font></div>
<div><font face="'courier new', monospace">                         ]),</font></div><div><br></div><div>Now, all the data I load (huge amounts) will reside in RAM as expected.</div><div>But what I would like here is to have a backup of all the data residing</div>
<div>in RAM to be also present on disk, so that in case i stop and start Mnesia again,</div><div>it should load the data from the disk to memory, instead of loading the data</div><div>again into memory explicitly by me.</div>
<div><br></div><div>What I can do here is :</div><div>1) <font face="'courier new', monospace">mnesia:change_table_copy_type(schema,node(),disc_copies),</font></div><div>   Now, this would create a disc copy, but all my queries to mnesia would </div>
<div>   access disk. right ? This is what i observed and didnt want.</div><div><br></div><div>2)<font face="'courier new', monospace"> mnesia:add_table_copy(table, node(), disc_copies)</font></div><div>   This didnt have any effect. Didnt create any disc copy.</div>
<div><br></div><div>So, what would be the correct way to </div><div>1) Load data to RAM as well as backup in disc.</div><div>2) Queries/ Multiple loads should access/update RAM/disc resp.</div><div>3) On mnesia restart data should be loaded from Disc automatically.</div>
<div><br></div><div>Is there any Mnesia configuration for above ?</div><div><br></div><div>Thanks</div>Arun<br>
</div>