[erlang-questions] Minimum number of attributes in an mnesia table

Ben Hood 0x6e6562@REDACTED
Thu Jul 31 02:25:13 CEST 2008

On Wed, Jul 30, 2008 at 11:40 PM, Sargun Dhillon <xbmodder@REDACTED> wrote:
> Are you querying based on the value? Why not just use make_ref() as the
> index, or an incrementing an integer.

I am querying on the key which is a 3 part tuple {X,Y,Z} which is
indexed as as a tree in term order.

Given X and Y I need to access Z and I also need to query on Z to get
X,Y combinations.

So I've got 2 tables, 1 in a forwards direction, 1 in reverse as such:

{forwards, {X,Y,Z}, const}

{reverse, {Z,Y,X}, const}

More information about the erlang-questions mailing list