You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
I have a pool property set in the database.yml file, but I noticed that datamapper does not use that. It has this magic number 8 which it uses, where is this number coming from? And how can I configure pool settings for datamapper.
All of that stuff gets set down in DataObjects, and i can't remember
exactly how to set it off hand. There should be a setting you can control
through the database setup, but I don't recall off hand (and i'm totally
swamped, otherwise i would lend a hand). Hopefully knowing where to look
can give you a leg up on digging into the details.
@nmccready To answer your question, it appears that the answer is no. I've opened an issue in DO to add the basic support for something like this. But I don't know if/when it will be done.
Activity
nmccready commentedon Aug 23, 2013
was this ever figured out? How do you set the datamapper pool size in the settings?
knowtheory commentedon Aug 23, 2013
All of that stuff gets set down in DataObjects, and i can't remember
exactly how to set it off hand. There should be a setting you can control
through the database setup, but I don't recall off hand (and i'm totally
swamped, otherwise i would lend a hand). Hopefully knowing where to look
can give you a leg up on digging into the details.
-T
On Fri, Aug 23, 2013 at 11:48 AM, nmccready notifications@github.comwrote:
nmccready commentedon Aug 26, 2013
I found the code, but is the pool size and number of threads passed in via the database.yml file? IE is there pool: 100 setting?
tpitale commentedon Feb 8, 2016
There is no mention of pool in dm-rails either: https://github.com/datamapper/dm-rails
The connection pooling appears to be done on a per-connection/adapter basis: https://github.com/datamapper/do/search?utf8=%E2%9C%93&q=pool_size
tpitale commentedon Feb 8, 2016
@nmccready To answer your question, it appears that the answer is no. I've opened an issue in DO to add the basic support for something like this. But I don't know if/when it will be done.