Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

DataObjects' pool size is 8. It really should be configurable. #60

Open
rtyler opened this issue Aug 22, 2013 · 1 comment
Open

DataObjects' pool size is 8. It really should be configurable. #60

rtyler opened this issue Aug 22, 2013 · 1 comment

Comments

@rtyler
Copy link

rtyler commented Aug 22, 2013

This was originally reported against the dm-core project by @kapso, I figured I'd open up the issue here since I can't seem to find one already.

It's understandable why the pool size is always 8, but I really think that should be configurable :)

I'm experimenting with a monkey-patch cited in this StackOverflow post, which is roughly

DB_POOL_SIZE = 12

class DataObjects::Pooling::Pool
  alias :initialize_old :initialize
  def initialize(max_size, resource, args)
    initialize_old(DB_POOLSIZE, resource, args)
  end
end

I figure if this is more configurable, then dm-core can support configuring it, and help me avoid this whole monkey-patching business

@seanhagen
Copy link

👍 Being able to set the pool size would be great.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants