Using version 1.6.3.  I am able to create duplicate edge on every second 
attempt to create edge.  I have Vertex for User and for Language and an 
Edge speaks between the User and Language.

On first attempt to create an edge, it succeeds. *create edge speaks from 
(select from User where name = 'Luca') to (select from Language where name 
= 'En-uk');*
2nd attempt to create the same edge, it gives me a warning that unique 
index exists and refuses to create the edge.
3rd attempt works.
4th attempt fails and so on.  

It seems that once an exception is thrown the next request will create a 
duplicate.  is the way I'm creating my index is wrong?  

*Data Setup:*
==========================================================
#create classes/vectors
create class User extends V;
create class Language extends V;

#create edges
create class speaks extends E;

#create User Data
create vertex User set name = 'Luca';
create vertex User set name = 'Joe';

#create Language Data
create vertex Language set name = 'En-uk';
create vertex Language set name = 'En-us';
create vertex Language set name = 'Fr-fr';
create vertex Language set name = 'Ru-ru';
create vertex Language set name = 'Ar-sy';

#index
create property speaks.out LINK;
create property speaks.in LINK;
CREATE INDEX unique_speaks ON speaks (in, out) UNIQUE;

===============================================


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to