[elephant-devel] keeping btree indices up to date

Leslie P. Polzer sky at viridian-project.de
Wed Nov 5 08:51:38 UTC 2008


> I'm storing objects in a btree, and indexing one slot common to all of
> the objects for fast retrieval.  There is more than one type of object
> in the btree, so I'm using btree indices rather than a slot index.

Can you provide a small example?


> I note that when the indexed slot changes, the index is not updated.
> As I'm using this slot to retrieve objects, this is something of a
> problem.  The slot contains a string value.
>
> I could get around this by deleting and then recreating the index, but
> that seems ugly.  Is there anything else I can do?

Yes, try the not-so-unstable-on-BDB elephant-unstable[1].

If that doesn't help then we're going to find out what's wrong.

  Leslie


[1] http://common-lisp.net/project/elephant/darcs/elephant-unstable/





More information about the elephant-devel mailing list