ETS table with only counters

Frank Muller frank.muller.erl@REDACTED
Tue Nov 24 20:33:23 CET 2020


Hi guys,

I've a ETS (type of "set") which contains ONLY counters
(ets:update_counter/3).

This table is heavily used and the counters get incremented and decremented
at different rates.

Question: how should i set my table?
1. both concurrency set to true:
    [ set
    , {read_concurrency, true}
    , {write_concurrency, true} ].

2. only read concurrency set to true:
    [ set
    , {read_concurrency, true}
    , {write_concurrency, false} ].

3. only write concurrency set to true:
    [ set
    , {read_concurrency, false}
    , {write_concurrency, true} ].

Please explain why?

/Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20201124/1df1a430/attachment.htm>


More information about the erlang-questions mailing list