Hi Chris,

Thanks for raising the defect.

regards,
sathwik

On Saturday, 21 February 2015 00:27:53 UTC+5:30, Chris Wilper wrote:
>
> I was curious about this as I've looked around at that code before and saw 
> where it was setting these flags. Looks like a bug, I've reported it here 
> w/details:
>
> https://github.com/orientechnologies/orientdb/issues/3634
>
> - Chris
>
> On Fri, Feb 20, 2015 at 3:32 AM, Sathwik B P <[email protected] 
> <javascript:>> wrote:
>
>> Hi,
>>
>> OrientDB 2.0.2
>>
>> Would like to know how to disable implicit transactions when using Graph 
>> API.
>>
>> Here is the piece of code
>>
>>         OrientGraphFactory factory = new OrientGraphFactory(
>> "remote:localhost/test","root","orientdb");
>>         factory.setAutoStartTx(false);
>>         
>>         factory.setupPool(1,10);
>>         
>>         OrientGraph graph = factory.getTx();
>>         graph.createKeyIndex("name", Vertex.class);
>>
>>         graph.shutdown();
>>         factory.close();
>>
>>
>> This puts out a warning saying that the transaction has been started.
>> Creating of key index throws a waring 
>> WARNING: Requested command 'create key index on 'Vertex.name'' must be 
>> executed outside active transaction: the transaction will be committed and 
>> reopen right after it. To avoid this behavior execute it outside a 
>> transaction
>>
>> This doesn't happen if the pool is not setup. 
>>
>> Setting the pool is creating an implicit transaction in the rawGraph.
>>
>> Would like to know how to overcome the starting of implicit transactions.
>>
>> regards,
>> sathwik
>>
>> -- 
>>
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

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