[erlang-questions] Fetching several ets keys
Thu Feb 9 11:11:39 CET 2012
You could try
ets:select or qlc interface.
It table is not big enough then qlc and custom fold function would work:
Q=qlc:q([ X || X <- ets:table(mytab)]),
qlc:fold(FoldFun, , Q)
On 9.2.2012, at 11.40, ori brost <> wrote:
> Is there any way in ets to fetch values for several keys in 1 call?
> i.e. something like
> ets:multi_fetch(Tid, ["A","B","C","D"]) % will fetch all entries with
> keys A, B, C, D
> erlang-questions mailing list
More information about the erlang-questions