Right. We understand that removing sync will make code non thread safe, but
just wanted to check if it improves anything.
So even after removing all sync blocks in hold method as well , the timings
are not improving.
Also we observe that even if max connection pool size is set to 400 the max
connections it creates to DB is almost half the number. Struggling to
figure out where really the issue is now.
Thanks
Shashank

On Wed, Jan 3, 2018 at 10:23 PM, Jeremy Evans <[email protected]>
wrote:

> On Wednesday, January 3, 2018 at 12:09:52 AM UTC-8, shashank Jain wrote:
>>
>> One more observation. Under 300 concurrent threads.
>>
>> Initially Acquire method in threaded.rb was taking upto 15 secs. We as an
>> experiment removed the sync blocks from it. The time for acquire reduced,
>> but now I see hold method taking same amount of time.
>>
>> What can be the possible reasons ?
>>
>
> If you remove the sync blocks, you remove all thread safety. hold also
> calls sync, so you are just hitting the mutex at a different time.
>
> Did you try using JRuby instead of CRuby?  JRuby will generally handle a
> large number of threads better.
>
> Thanks,
> Jeremy
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sequel-talk" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/sequel-talk/5NNUNaHqIMY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sequel-talk.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to