[elephant-devel] Storing objects in the root when don't care about the key / add same key to root more than once

Dmitry V. Gorbatovsky gorbatovsky at gmail.com
Mon May 28 09:05:25 UTC 2007


On Monday 28 May 2007 07:36, Joubert Nel wrote:
> On Sun, 2007-05-27 at 23:46, Robert L. Read wrote:
> > On Sun, 2007-05-27 at 16:23 -0400, Joubert Nel wrote:

> On another note:
> In my experimentation I added several objects to the root, all with the
> same key.
> All these objects get added but there is the following curiosity:
> - I can do a map-class to get them all, BUT
> - map-root will only return one key/value pair for a given key (even
> when there are multiple objects stored against the same key)
>
> I'm wondering whether a design decision was  made to allow addition of
> the same key more than once?
> Thanks for a great library.
>
> Joubert
>
> _______________________________________________
> elephant-devel site list
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel

Nop , as far as I understand, map-class operate on OID and type information 
and returns all persistent objects , while root 'hash-table' keep only last 
key-value pair.

Regards , Dmitry



More information about the elephant-devel mailing list