[elephant-devel] Re: map-index
Alex Mizrahi
killerstorm at newmail.ru
Fri Nov 30 17:24:17 UTC 2007
??>> while in my opinion it would be enough to do this:
??>>
??>> (cursor-pfirst c) => 1
??>> (cursor-pnext c) => 2
??>> (cursor-pnext c) => nil
IE> What if there are more than two values = 2? This will only get the
IE> first one.
so you say that cursor-pnext is same as cursor-pnext-nodup?
i thought that it just iterates sequence regardless whether there are
duplicates or not -- just what we want.
the BDB documentation says this:
----
Otherwise, the cursor is moved to the next key/data pair of the database,
and that pair is returned. In the presence of duplicate key values, the
value of the key may not change.
----
looks like it means it works fine with duplicate keys, but wording is
vague..
More information about the elephant-devel
mailing list