[erlang-questions] Getting attributes

Steve Davis steven.charles.davis@REDACTED
Sun Oct 14 01:38:32 CEST 2012


I understated the issue:

The position of the entity can also change: 
{id, {x,y}, attribute}

So, in fact, the id is the only constant and the pos and attribute are independently mutable.



On Oct 13, 2012, at 6:23 PM, Steve Davis <steven.charles.davis@REDACTED> wrote:

> Hi all,
> 
> Suppose I have a 2 dimensional plane {x, y} of 64k by 64k coordinates.
> 
> Each coordinate has a mutable attribute {{x, y}, attribute}
> 
> If I need to query: What are the attributes of positions "next to" my position, i.e: x +- 1, y +- 1?
> 
> What is the correct solution to this without storing everything in "Oracle" and using relational queries?
> 
> Can this be sensibly maintained in a KV store?
> 
> /s




More information about the erlang-questions mailing list