mnesia:dirty_update_counter/3

Vance Shipley vances@REDACTED
Tue Oct 25 22:12:36 CEST 2005


Is there a good reason why we mnesia:dirty_update_counter/3
doesn't have the full syntax of ets:update_counter/3?

In ets we can maintain a counter which wraps at a threshold:

   ets:update_counter(Tab, Key, {Pos,Incr,Threshold,SetValue})

But in mnesia we can only do a simple increment:

   dirty_update_counter(Tab, Key, Incr)

	-Vance




More information about the erlang-questions mailing list