-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mention db-postgres/async-postgres in the docs #147
Comments
I have archived I'll follow up with further changes/improvements to the documentation. |
Oh ok great! |
I just read this comment on HN:
Is this a problem for falcon in combinaton with rails and the |
I would not recommend combining AR and Falcon at this time, because AR connection state is per-thread. There is work to correct this deficiency. rails/rails#42271 I would recommend using the |
Bit of an aside, I imagine people visiting the |
For data modelling we have https://github.com/socketry/db-model I will cross link these projects. For migrations we have https://github.com/socketry/db-migrate Both projects are immature and require more work but they both do work and I'm using them in production. |
Thanks for the answer. Guess the I am not migrating a bigger legacy Rails app to falcon then yet, since I'm stuck with active record and therefore cannot use the |
Yes, well if AR support for fibers is important you should voice your support on the relevant issue :) |
Does Falcon work well with Jeremy Evans' Sequel? A question that's bit of an aside, but not too far off what's being discussed here. 🙂 I took a look at Sequel's default connection pool implementation, and it seems to use thread locals, which should also be fiber locals, but figured maybe someone has tried it and had proper confirmation. |
See this hn thread: https://news.ycombinator.com/item?id=27238671
People seem to think that threaded Rails isn't worthwhile because pg is blocking, but you have solved the problem with async-postgres (which is awesome!).
Since falcon isn't too useful with rails if you're using a blocking db driver, it might be worth mentioning their use in the rails integration guide (along with any other async versions of common libraries needed to make threaded ruby worthwhile).
The text was updated successfully, but these errors were encountered: