Hi Andrey,

I have two questions regarding this topic:


   1. I am assuming the OrientGraphFactory can be an application level 
   object that is instantiated during application startup and can be available 
   globally within application as long as the application logic is using the 
   factory instance to get an instance of OrientGraph from the pool then shuts 
   it down after the use.  If my assumption is correct, I guess I can close 
   the OrientGraphFactory object only when the application is shutting down, 
   correct?
   2. For the number of graph instances in the OrientGraphFactory pool, is 
   there a magic formula or rule of thumb on how many should be specified as 
   min/max based on X number of concurrent users/requests at peak moment?

Thank you!



On Monday, October 20, 2014 11:02:57 AM UTC-4, Andrey Lomakin wrote:

> Hi,
> You should do shutdown, otherwise your pool may be eventually exhausted.
>
> It is not the case now if you use thread pool but better to not relay on 
> implementation details.
>
> On Mon, Oct 20, 2014 at 5:58 PM, Keith Freeman <[email protected] 
> <javascript:>> wrote:
>
>> Using a factory like this:
>> OrientGraphFactory gfactory= new OrientGraphFactory(
>> "remote:localhost/testdb","root","root".setup(1,20);
>>
>> ...I reuse instances from the pool many times using gfactory.getTx().  
>> Should I always call graph.shutdown() when finished with an instance from 
>> the pool?  If not, what are the costs/benefits of doing so?
>>
>> -- 
>>
>> --- 
>> 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.
>>
>
>
>
> -- 
> 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