Hi,
I did some further tests, I tried the below code snippet (in remote mode)
after executing alter database custom useLightweightEdges=true from
console.The higlighted line seem to be cause, which is why its ending up
creating the non lightweight edges.
If I set graph.setUseLightweightEdges(true) explicitly before creating the
edges,then it works and i get the lightweigh edges. So I am using this
workaround for the timebeing.
OrientGraphFactory factory = new
OrientGraphFactory("remote:localhost/test1","admin","admin");
factory.setUseLightweightEdges(true);
OrientGraphNoTx graph = factory.getNoTx();
final List<OStorageEntryConfiguration> custom =
(List<OStorageEntryConfiguration>)
graph.getRawGraph().get(ATTRIBUTES.CUSTOM);
for (OStorageEntryConfiguration c : custom) {
if (c.name.equals("useLightweightEdges"))
System.out.println("StorageEntryConfig IsLightweightEdge:" +
Boolean.parseBoolean(c.value)); //prints true which is fine.
}
*System.out.println("Graph IsLightweightEdge:" +
graph.isUseLightweightEdges()); //This prints false which seem to be the
issue*
Thanks
Sajal.
On Thursday, 18 December 2014 14:16:07 UTC+5:30, Riccardo Tasso wrote:
> Hi,
> since in the new Orient 2.0 there will be Lightweight Edges (LE)
> disabled by default I would like to ask which are the benefits and cost of
> one approach instead of the other.
>
> Of course I see that LE can't have other properties than label. LE will
> require less space, since no records are created on the database.
> Are there other benefits in terms of cost of inserting/updating/deleting a
> new edge?
> Which performance differences can I expect in a traversal with or without
> LE?
>
> I'd like to see this kind of discussion inside documentation, which I
> guess will be updated soon (since it states LE are the default):
> http://www.orientechnologies.com/docs/last/orientdb.wiki/Tutorial-Working-with-graphs.html
>
> Cheers,
> Riccardo
>
> P.S. I have my orient t-shirt right now, thank you guys!
>
--
---
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.