<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 23, 2013 at 1:06 PM, Martin Dimitrov <span dir="ltr"><<a href="mailto:mrtndimitrov@gmail.com" target="_blank">mrtndimitrov@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1de" style="overflow:hidden">For example, {key123, [a,b,c]}. Now I have to add to the list a new<br>
item, say 'd'. I have to select the record, add the new value to the<br>
list and replace the record with the new list. But how to do this<br>
atomically?</div></blockquote></div><br>In this case, you may want to look at the "bag" table type, or perhaps "duplicate bag". It will almost always be a better representation than having to run the overhead of copying your list back and forth between a process and ETS. Dmitry's suggestion is good as well. Serialize writes to the table through a single process.<br>

<br clear="all"><div><br></div>-- <br>J.
</div></div>