I’m developing FB app on Heroku, using Ruby, Sinatra and Mongo. I think that sharing database connection is a good idea but I don’t know how it looks on production.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure where you have looked or researched.
In addition to @Stennie’s link above, check out the following links –
Look at the actual source code of the ruby driver on github. There’s ample information there, including a section and an example of connection pooling.
Check out the overall ruby driver information
Some notes on pooling within the drivers.
See also this question answered by the original Ruby driver author on So.
If you’re not using connection pooling, you may see the following messages in your logs.