Most efficient way to copy objects between Mnesia tables?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Most efficient way to copy objects between Mnesia tables?

Andersson, Peter
Hey guys!

I can think of a few different ways to copy the objects from one Mnesia table to another, but I'm looking for a most efficient option, in terms of time and process heap memory consumption (in case of a tradeoff, memory is most important). The tables in question are RAM only, not distributed and it's ok to perform dirty operations. No object conversion or matching required.

Possibly dirty_first followed by iterations over dirty_read, copy and dirty_next, but I have a strong feeling that's thinking too much "inside the box". 😄 Hit me with your best suggestions!


This email may contain information which is privileged or protected against unauthorized disclosure or communication. If you are not the intended recipient, please notify the sender and delete this message and any attachments from your system without producing, distributing or retaining copies thereof or disclosing its contents to any other person.

Telia Company processes emails and other files that may contain personal data in accordance with Telia Company’s Privacy Policy.

erlang-questions mailing list
[hidden email]