orientdb> create database plocal:/home/kyle/Downloads/orientdb-community-2.0.7/databases/ledge_test2 admin admin
Creating database [plocal:/home/kyle/Downloads/orientdb-community-2.0.7/databases/ledge_test2] using the storage type [plocal]...
Database created successfully.
Current database is: plocal:/home/kyle/Downloads/orientdb-community-2.0.7/databases/ledge_test2
orientdb {db=ledge_test2}> alter database custom useLightweightEdges=true
Database updated successfully
orientdb {db=ledge_test2}> insert into V set myid = 1
Inserted record 'V#9:0{myid:1} v1' in 0.007000 sec(s).
orientdb {db=ledge_test2}> insert into V set myid = 2
Inserted record 'V#9:1{myid:2} v1' in 0.001000 sec(s).
orientdb {db=ledge_test2}> create edge knows from #9:0 to #9:1
Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error on parsing command at position #0: Class 'KNOWS' was not found
orientdb {db=ledge_test2}> disconnect
Disconnecting from the database [ledge_test2]...OK
orientdb> exit
gremlin> g = new OrientGraph("remote:localhost/ledge_test2")
Apr 16, 2015 12:32:55 PM com.orientechnologies.common.log.OLogManager log
INFO: OrientDB auto-config DISKCACHE=13,498MB (heap=455MB os=16,002MB disk=30,513MB)
==>orientgraph[remote:localhost/ledge_test2]
gremlin> g.isUseLightweightEdges()
==>true
gremlin> v1=g.V[0].next();v2=g.V[1].next();
==>v[#9:1]
gremlin> e=v1.addEdge("knows",v2)
==>e[#9:0->#9:1][#9:0-knows->#9:1]
gremlin> e
==>e[#9:0->#9:1][#9:0-knows->#9:1]
gremlin> e.isLightweight()
==>true
Orient Technologies
The Company behind OrientDB
alter database custom useClassForEdgeLabel=false;
is an edge class with that label's name created?