[erlang-questions] Ets and Postgres

Pierpaolo Bernardi olopierpa@REDACTED
Tue Dec 4 16:36:32 CET 2007


On Dec 4, 2007 2:34 PM, Dragan Zubac <zubac@REDACTED> wrote:

> What
> about to split data in the following way:
>
> key = article_user,value = price_where_to_ship
>
> and insert that data combination into ets table ? So if user Petar wants
> to buy ball for example,we'll make lookup for key='ball_petar',will get
> back value='4_London',parse the value to get price='4' and
> where_to_ship='London' ?

Keys are not restricted to atoms.  You can use a tuple as key.

P.



More information about the erlang-questions mailing list