RENAMING MNESIA TABES

Hakan Mattsson <>
Mon Dec 16 13:04:57 CET 2002


On Mon, 16 Dec 2002, Chandrashekhar Mullaparthi wrote:

Chandru> Take a backup of the database and then do your export by traversing the
Chandru> backup. The backup process is quite efficient and quick. The functions of
Chandru> interest to you would be mnesia:backup and mnesia:traverse_backup - check
Chandru> the user guide for mnesia as well - there is an example of traversing a
Chandru> mnesia backup file. You can traverse the backup in a different mnesia node
Chandru> as well.
Chandru> 
Chandru> Tip: when writing to your CSV file, dont write one line at a time. Write a
Chandru> bunch of lines at a time. This will considerably speed up your export
Chandru> process. 

If you want you can plug-in your own backup module in order to
directly create your CSV file without going via Mnesia's default
backup format. See the 'mnesia_backup' appendix for more info.

/Håkan 




More information about the erlang-questions mailing list