Hi,<br><br>I have an optimization question. Consider the following scenario:<br><br>- I have, say around 40,000 long running processes. Each represents an online user and keeps some user related data in the process dictionary.<br>
- I need each of the processes to perform some computation against a long record that I'll send as a message. <br>- The long record (around 40 fields, mostly short strings) is also available in an mnesia RAM only table<br>
<br>So the question is <br><br>Is it better to read the record from mnesia once and send the complete record to each of the 40,000 processes <br><br>or<br><br>Is it better to just send the key in the message and have each of the processes do an mnesia lookup<br>
<br>The reason, I ask this is because the Efficiency Guide explicitly states that <br><br>"All data in messages between Erlang processes is copied, with
the exception of
refc binaries
on the same Erlang node."<br><br>Regards,<br>  Amit<br><br><br><br>