socketry / falcon

A high-performance web server for Ruby, supporting HTTP/1, HTTP/2 and TLS.
https://socketry.github.io/falcon/
MIT License
2.54k stars 79 forks source link

Mention Rails 7.1 isolation_level config #218

Closed santib closed 5 months ago

santib commented 5 months ago

The other day I was trying Falcon for the first time on a I/O bound Rails app. While I was testing I started seeing very strange errors when doing simple DB queries (PostgreSQL), for example primary_key not found for table x. Fortunately, after some research, I realized I needed switch a new Rails 7.1 config. When I did that I was amazed to see how everything started to work just fine, and feeling grateful we have an evented web server ready to be used along with Rails (thanks 🙌).

I added the config change to the top of the docs so we make sure nobody makes the same mistake, but I'm wondering if this should be turned on automatically by falcon using a Railtie?

Types of Changes

Contribution

ioquatix commented 5 months ago

I've also proposed adding support for this using rails new --server falcon.

https://github.com/rails/rails/pull/50917