IE> Should be easy to add an index lookup to shared-initialize and a check
 IE> in indexed slot access as to whether you are changing the unique value.

Hmm, there is a problem with this and concurrency -- one thread does a 
check, it passes and it inserts a value, and another thread does the same 
thing.
Now there are two entries with same key, despite both checks passed.

Or will locks in BDB prevent this?

In PostgreSQL they do not, unless there is unique index in database. 



_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel

Reply via email to