[erlang-questions] dirty_update_counters and mnesia_frag
Sat Jun 22 12:08:05 CEST 2013
I copied key_to_frag_name and its' dependencies from mnesia_frag.erl to my
project. Now I generate frag table names in my code and
use dirty_update_counters on a generated table name, bypassing mnesia_frag
callback altogether. I use this for dirty_update_counters only and call
mnesia:activity(..., mnesia_frag) for everything else, like selects etc.
Could there be any problems in such workflow? There are no other write
operations besides dirty_update_counters and clear_table.
суббота, 22 июня 2013 г., 12:48:59 UTC+4 пользователь Evgeny M написал:
> It looks like atm it is impossible to use dirty_update_counters in
> mnesia_activity with AccessMod == mnesia_frag (and with any other access
> modules too) as this function is not forwarded to callback access module.
> I for one don't think there would be any potential problems with
> dirty_update_counters in frag_tables context if it was possible to use this
> combination at all.
> Why call to this function does not forwarded to access module, and are
> there any workarounds besides manual sharding?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions