Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Datamapper & connection pool logic #232

Open
kapso opened this Issue · 4 comments

4 participants

@kapso

So I am trying to use datamapper inside my Rails 3.2.8 app.

I have a config/initializers/dm.rb where I load the database.yml

hash = YAML.load(File.new("database.yml"))
DataMapper.setup(:default, hash[Rails.env])

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.

@lgierth

Can you post the database.yml with credentials stripped?

@nmccready

was this ever figured out? How do you set the datamapper pool size in the settings?

@knowtheory
Owner
@nmccready

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.