<p dir="ltr" style="margin-top:0; margin-bottom:0;">Hi, </p>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">Documentation says that operation is guaranteed to be <a href="https://erlang.org/doc/man/ets.html#concurrency">atomic and isolated</a>. </p>
<br>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">Envoyé depuis mon mobile </p><br><br>---- Frank Muller a écrit ----<br><br><div dir="auto">Hi guys,</div><div dir="auto"><br></div><div dir="auto">I've a ETS (type of "set") which contains ONLY counters (ets:update_counter/3).</div><div dir="auto"><br></div><div dir="auto">This table is heavily used and the counters get incremented and decremented at different rates.</div><div dir="auto"><br></div><div dir="auto">Question: how should i set my table?</div><div dir="auto">1. both concurrency set to true:</div><div dir="auto"> [ set</div><div dir="auto"> , {read_concurrency, true}</div><div dir="auto"> , {write_concurrency, true} ].</div><div dir="auto"><br></div><div dir="auto">2. only read concurrency set to true:</div><div dir="auto"> [ set</div><div dir="auto"> , {read_concurrency, true}</div><div dir="auto"> , {write_concurrency, false} ].</div><div dir="auto"><br></div><div dir="auto">3. only write concurrency set to true:</div><div dir="auto"> [ set</div><div dir="auto"> , {read_concurrency, false}</div><div dir="auto"> , {write_concurrency, true} ].</div><div dir="auto"><br></div><div dir="auto">Please explain why?</div><div dir="auto"><br></div><div dir="auto">/Frank</div>