[erlang-questions] 2 indexes

Stanisław Pitucha viraptor@REDACTED
Sat Apr 12 16:57:55 CEST 2008


Hi
I'm trying to do something that will effectively work as 2 indexes in
ets. I'm writing a proxy for connections so my connection list is
{IdForSide1, IdForSide2, OtherStuff}. I'd like to find that tuple by
any of ids quickly... is there a way to do it with only one tuple, or
should I split it to 3 tables {IdForSide1, ConnectionRef},
{IdForSide2, ConnectionRef}, {ConnectionRef, OtherStuff} ?
That seems like rather heavy solution, or maybe not... I don't have
that much experience with ets.
Thanks for any ideas.



More information about the erlang-questions mailing list