Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

[fix] [ugly] use only one connection to db #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[fix] [ugly] use only one connection to db #5

wants to merge 1 commit into from

Conversation

YavorK
Copy link

@YavorK YavorK commented May 8, 2014

It's totally OK if you don't merge this. Actually a pull request is the only way I found to contact you on that problem:

I downloaded your library and I liked it a lot. Sadly it was making 1 db connection for each model call. So my web host kept returning "too many connections to db" error. So I made this (yes, it's ugly) fix to make it work with only one connection. I'd love to update it in my project if you have a prettier solution.

I downloaded your library and I liked it a lot. Sadly it was making 1 db connection for each model call. So my web host kept returning "too many connections to db" error. So I made this (yes, it's ugly) fix to make it work with only one connection. I'd love to update it in my project if you have a prettier solution.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant