So you saying that the "alter database" command isn't working right, but if
you use "factory.setLightweightEdges(true)" it does work, right? That
really sounds like a bug, can you create an issue for it? I know for my
project we really rely on the old behavior for lightweight edges, so this
could be a really big deal for us.
On Thursday, December 18, 2014 5:02:37 AM UTC-7, Sajal Gupta wrote:
>
> 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.