Hi, I just wanted to check that if I want to create pool of both TxGraph(OrientGraph) and NonTx graph den do we have any factory in Orient DB [2.0.9] because I came across ODatabaseDocumentPool(metioned on orient doc) dat is deprecated or do i have to create my own connection factory?
Regards / Raghunandan On Wednesday, January 15, 2014 at 8:47:13 PM UTC+5:30, Andrey Lomakin wrote: > > Hi, > You should call shutdown. It closes db connection but storage itself will > be closed or by JVM hook (embedded mode) or by server during server > shutdown. > > > On Wed, Jan 15, 2014 at 3:00 PM, Chris Hutton <[email protected] > <javascript:>> wrote: > >> Can I just check how you are closing OrientGraph? Do you just call >> .shutdown()? or close the rawGraph inside the OrientGraph object? >> >> >> On Sunday, 17 November 2013 13:35:01 UTC, Lvc@ wrote: >> >>> Hi, >>> the OGraphDatabase* api are deprecated, so the new Blueprints (since >>> OrientDB v.1.4) is based on the raw document database layer. >>> >>> Lvc@ >>> >>> >>> On 16 November 2013 20:31, Laurent Quérel <[email protected]> wrote: >>> >>>> Thanks Lvc@. >>>> >>>> Just for my curiosity, why use ODatabaseDocumentPool instead of >>>> OGraphDatabasePool? >>>> >>>> Best >>>> >>>> Laurent >>>> >>>> Le samedi 16 novembre 2013 02:50:07 UTC-8, Lvc@ a écrit : >>>>> >>>>> Hi Laurent, >>>>> unfortunately there isn't the concept of Graph Pool in Blueprints, so >>>>> this is the right way to do it. Just use ODatabaseDocumentPool instead of >>>>> OGraphDatabasePool >>>>> with 1.6. >>>>> >>>>> In 2.0-SNAPSHOT we've the new OrientGraphPool to use the pool in more >>>>> elegant way. >>>>> >>>>> Lvc@ >>>>> >>>>> >>>>> On 14 November 2013 20:34, Laurent Quérel <[email protected]> >>>>> wrote: >>>>> >>>>>> Currently I use this implementation. >>>>>> >>>>>> public void initConnectionPool() { >>>>>> OGlobalConfiguration.CLIENT_CHANNEL_MAX_POOL.setValue(120); >>>>>> OGlobalConfiguration.MVRBTREE_TIMEOUT.setValue(20000); >>>>>> OGlobalConfiguration.STORAGE_RECORD_LOCK_TIMEOUT.setValue(20000); >>>>>> >>>>>> connectionPool = new OGraphDatabasePool(this.url, this.username, >>>>>> this.password); >>>>>> } >>>>>> >>>>>> public OrientGraph getOrientGraph() { >>>>>> return new OrientGraph(connectionPool.acquire()); >>>>>> } >>>>>> >>>>>> >>>>>> and I close each OrientGraph object in a classic try {} finally {} >>>>>> pattern. >>>>>> >>>>>> Is it still the right approach with OrientDB 1.6.x ? >>>>>> >>>>>> Best >>>>>> >>>>>> Laurent >>>>>> >>>>>> Le jeudi 14 novembre 2013 10:18:55 UTC-8, Laurent Quérel a écrit : >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I found several methods here and there to implement a connection >>>>>>> pool with OrientDB. Some link as https://github.com/orientec >>>>>>> hnologies/orientdb/wiki/Performance-Tuning creates an object >>>>>>> ODatabaseDocumentTx and sets properties min/maxPool and this link ' >>>>>>> https://groups.google.com/forum/#!topic/orient-database/afEN23flHHU' >>>>>>> takes a second approach based on OGraphDatabasePool... >>>>>>> >>>>>>> What is the official recommendation for OrientDB 1.6 to implement a >>>>>>> pool of connection with OrientGraph ? >>>>>>> >>>>>>> Best >>>>>>> >>>>>>> Laurent >>>>>>> >>>>>> -- >>>>>> >>>>>> --- >>>>>> 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/groups/opt_out. >>>>>> >>>>> >>>>> -- >>>> >>>> --- >>>> 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/groups/opt_out. >>>> >>> >>> -- >> >> --- >> 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/groups/opt_out. >> > > > > -- > 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.
