Sure.

On Thu, Apr 3, 2014 at 8:05 PM, Nhat Nguyen
<[email protected]>wrote:

> Does plocal supports transactions?
>
>
> On Thursday, April 3, 2014 6:56:07 PM UTC+2, Nhat Nguyen wrote:
>>
>> Still takes the same time.
>>
>> On Thursday, April 3, 2014 6:47:56 PM UTC+2, Nhat Nguyen wrote:
>>>
>>> Could you maybe describe what plocal means? I couldnt find anything in
>>> the wiki. Is it "physical local"?
>>>
>>> What is the difference between them?
>>>
>>> On Thursday, April 3, 2014 11:13:37 AM UTC+2, Andrey Lomakin wrote:
>>>>
>>>> You use local.
>>>> Could you change to plocal and say result we are going to deprecate
>>>> local so it is reasonable to test on this storage any way.
>>>>
>>>>
>>>> On Thu, Apr 3, 2014 at 12:12 PM, Nhat Nguyen <[email protected]
>>>> > wrote:
>>>>
>>>>> Thanks for the quick reply.
>>>>>
>>>>> public static void run()
>>>>>    {
>>>>>       final StopWatch s = new StopWatch();
>>>>>       s.start();
>>>>>       ODatabaseDocumentTx db = ODatabaseDocumentPool.global().acquire(
>>>>> "local:...",
>>>>>          "admin", "admin" );
>>>>>
>>>>>       int[] aArray = new int[] { 12, 23, 44, 50, 1, 29, 20, 99, 100,
>>>>> 2, 13 };
>>>>>       String[] sArray = new String[] { "Simon", "Pegg", "Marry",
>>>>> "Olean", "Itsu", "Parov", "Stelar", "Miquel" };
>>>>>       try
>>>>>       {
>>>>>          db.begin( TXTYPE.NOTX );
>>>>>          for( int j = 0; j < 50; j++ )
>>>>>          {
>>>>>             ODocument document = db.newInstance( "Person" );
>>>>>             for( int i = 0; i < 4000; i++ )
>>>>>             {
>>>>>                document.field( "fieldName" + i, "fieldValue" + i );
>>>>>             }
>>>>>             db.save( document );
>>>>>          }
>>>>>          db.commit();
>>>>>          s.stop();
>>>>>          System.out.println( s.prettyPrint() );
>>>>>       }
>>>>>       catch( Exception e )
>>>>>       {
>>>>>          e.printStackTrace();
>>>>>          db.rollback();
>>>>>       }
>>>>>       finally
>>>>>       {
>>>>>          db.close();
>>>>>       }
>>>>>
>>>>>    }
>>>>>
>>>>>
>>>>> and then the delete
>>>>>
>>>>> public static void deleteObjects()
>>>>>    {
>>>>>       final StopWatch s = new StopWatch();
>>>>>       s.start();
>>>>>       ODatabaseDocumentTx db = ODatabaseDocumentPool.global().acquire(
>>>>> "local:...",
>>>>>          "admin", "admin" );
>>>>>       try
>>>>>       {
>>>>>          db.begin( TXTYPE.NOTX);
>>>>>          for( ODocument m : db.browseClass( "Person" ) )
>>>>>          {
>>>>>             m.delete();
>>>>>          }
>>>>>          db.commit();
>>>>>          s.stop();
>>>>>          System.out.println( s.prettyPrint() );
>>>>>       }
>>>>>       catch( Exception e )
>>>>>       {
>>>>>
>>>>>          db.rollback();
>>>>>       }
>>>>>       finally
>>>>>       {
>>>>>          db.close();
>>>>>       }
>>>>>    }
>>>>>
>>>>> and then i ran those in a simple thread
>>>>>
>>>>> for( int i = 0; i < 2; i++ )
>>>>>       {
>>>>>
>>>>>          new Thread()
>>>>>          {
>>>>>             public void run()
>>>>>             {
>>>>>                TestBeanUtils.run();
>>>>>             };
>>>>>          }.start();
>>>>>       }
>>>>>
>>>>> feel free to blame anything.
>>>>>
>>>>> regards,
>>>>> Nhat
>>>>>
>>>>>
>>>>> On Thursday, April 3, 2014 11:04:14 AM UTC+2, Andrey Lomakin wrote:
>>>>>
>>>>>> That is because current version of cluster tries to reuse space at
>>>>>> any cost and your records are big.
>>>>>> That is why it is so slow.
>>>>>> Any way could you provide me test case I will look on it.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Apr 3, 2014 at 11:53 AM, Nhat Nguyen <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> is there any posibility to increase the performance of deletes?
>>>>>>>
>>>>>>> I inserted 200 Documents á 128kb size in ~2ms with 2 Threads.
>>>>>>> But when i am deleting them it takes 20 seconds. Am i doing anything
>>>>>>> wrong or is the delete just that slow?
>>>>>>>
>>>>>>> I tried it with the "java api" and the "console.bat".
>>>>>>>
>>>>>>> I´ve used the OrientDB Version 1.7-rc2.
>>>>>>>
>>>>>>> regards,
>>>>>>> Nhat
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> ---
>>>>>>> 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.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards,
>>>>>> Andrey Lomakin.
>>>>>>
>>>>>> Orient Technologies
>>>>>> the Company behind OrientDB
>>>>>>
>>>>>>   --
>>>>>
>>>>> ---
>>>>> 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.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>> Andrey Lomakin.
>>>>
>>>> Orient Technologies
>>>> the Company behind OrientDB
>>>>
>>>>   --
>
> ---
> 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.
>



-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

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