Hi,
Reason why you have ghosts is because your commands are run outside
transaction. During edge creation several documents are updated but
operations set without tx is not atomic.

Here is my output https://gist.github.com/laa/be70d402677b4bc1f0de on
develop branch (sorry but you should use latest version).

As  you can see after
transactional create edge tagcategory from (select from category where name
= 'Country') to (select from tag where name = 'UK')

Output of select commands is:

select from tagcategory

----+-----+-----+-----
# |@RID |out |in

----+-----+-----+-----
0 |#13:0|#12:0|#11:0

----+-----+-----+-----


select name as tag, in_tagcategory.out.name as category, @rid as tagRid,
in_tagcategory.out.@rid as categoryRid from tag

----+-----+----+--------+------+-----------
#   |@RID |tag |category|tagRid|categoryRid


----+-----+----+--------+------+-----------
0   |#-2:1|UK  |Country |#11:0 |#12:0


----+-----+----+--------+------+-----------

select expand(in()) from tag

----+-----+-------+---------------
# |@RID |name |out_tagcategory

----+-----+-------+---------------
0 |#12:0|null |null

----+-----+-------+---------------












-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
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