[elephant-devel] Unique key with Elephant
    Alex Mizrahi 
    killerstorm at newmail.ru
       
    Thu Mar 18 13:37:40 UTC 2010
    
    
  
 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. 
    
    
More information about the elephant-devel
mailing list