Pascal Chapier pascalchapier@REDACTED
Wed Sep 15 10:44:27 CEST 2010


Concerning Mnesia there is a powerful update mechanism with:

I am not sure that one can find a simpler and more general update(Element) model for actions such as

   add to cart

   remove from cart

   apply 10% discount

   modify phone number...

it can be faster in some cases:

mnesia:dirty_read, updateFunc, mnesia:dirty_write if concurrency is not a problem,

mnesia:dirty_write(#my_table{key = Key, item=Value}), if only item has to be overwritten and my_table is a set (concurrency ?).



More information about the erlang-questions mailing list