[erlang-questions] Most efficient way to copy objects between Mnesia tables?

Andersson, Peter peter.w.andersson@REDACTED
Tue Oct 15 12:43:13 CEST 2019


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!

  /Peter


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<https://www.teliacompany.com/en/about-the-company/privacy/>.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20191015/f24c580a/attachment.htm>


More information about the erlang-questions mailing list