[erlang-questions] list of updates in mnesia

Igor Ribeiro Sucupira <>
Sat Jan 23 16:57:01 CET 2010


Mnesia User's Guide might help in your decision:

Good luck.

On Sat, Jan 23, 2010 at 12:44 PM, Pablo Platt <> wrote:
> Hi,
> My erlang server sends an http request to several remote server every minute.
> The remote servers respond with a list of updates to user profiles and rosters.
> The erlang server needs to process the list of updates and apply it to the mneisa database.
> The updates might contain syntax errors or wrong info.
> For example, it is possible that the remote server will refer to a missing user id.
> It's not an e-commerce application so transactions are not critical.
> What is the best way to handle the list of updates?
> Do I need to use transactions when writing data to the mnesia table?
> Is it better to create one transaction for the whole list or one transaction per item?
> What is the risk in using dirty_write?
> Maybe it is better to use one process per list item so even if there are syntax errors the rest of the list will be used?
> Thanks

"The secret of joy in work is contained in one word - excellence. To
know how to do something well is to enjoy it." - Pearl S. Buck.

More information about the erlang-questions mailing list