Same (unexpected behaviour) from Orient 2.0-rc1 and command line:

orientdb> create database memory:temp    

Creating database [memory:temp] using the storage type [memory]...
Database created successfully.

Current database is: memory:temp
orientdb {db=temp}> select from v
0 item(s) found. Query executed in 0.001 sec(s).

orientdb {db=temp}> insert into v(name) values ("luca")
Inserted record 'V#9:0{name:luca} v1' in 0,002000 sec(s).
orientdb {db=temp}> insert into v(name) values ("riccardo")
Inserted record 'V#9:1{name:riccardo} v1' in 0,001000 sec(s).

orientdb {db=temp}> alter database custom useLightweightEdges=true
Database updated successfully
orientdb {db=temp}> create class knows extends E
Class created successfully. Total classes in database now: 11

orientdb {db=temp}> create edge knows from #9:0 to #9:1
Created edge '[e[#9:0->#9:1][#9:0-knows->#9:1]]' in 0,026000 sec(s).
orientdb {db=temp}> select from e                                 
0 item(s) found. Query executed in 0.001 sec(s).
orientdb {db=temp}> select out().size() from v
----+------+----
#   |@CLASS|out 
----+------+----
0   |null  |1   
1   |null  |0   
----+------+----
2 item(s) found. Query executed in 0.003 sec(s).

orientdb {db=temp}> create edge knows from #9:0 to #9:1
Created edge '[e[#9:0->#9:1][#9:0-knows->#9:1]]' in 0,008000 sec(s).
orientdb {db=temp}> select from e                      
0 item(s) found. Query executed in 0.0 sec(s).
orientdb {db=temp}> select out().size() from v         
----+------+----
#   |@CLASS|out 
----+------+----
0   |null  |2   
1   |null  |0   
----+------+----
2 item(s) found. Query executed in 0.002 sec(s).

orientdb {db=temp}> select from #9:0
----+----+------+----+------------
#   |@RID|@CLASS|name|out_knows   
----+----+------+----+------------
0   |#9:0|V     |luca|[#9:1, #9:1]
----+----+------+----+------------
1 item(s) found. Query executed in 0.0 sec(s).




-- 

--- 
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/d/optout.

Reply via email to