5 ms·
The free tier gets spun down to idle after five minutes of inactivity. The first request after that usually fails to connect as it takes a few seconds for it to
by mbil 2y ago
The free tier gets spun down to idle after five minutes of inactivity. The first request after that usually fails to connect as it takes a few seconds for it to come back up.
- tristan957 2y agoNeon cold starts are targeted at just a few hundred milliseconds. Anything on the order of seconds would be a regression in our minds. Obviously this depends on geographical latencies, etc. We are always looking to improve cold starts. (Neon engineer)
- mbil 2y agoHmm maybe my application's db pool settings need to be tweaked then. In any case the UX is nice and setup was super easy, thanks!
- tristan957 2y agoIf you're a paying customer, please reach out to support. If you're on the free tier, join the discord, and we can try and help too.
- mbil 2y agoI'm on the free tier. In my case it looks like adding `app.config["SQLALCHEMY_ENGINE_OPTIONS"] = {"pool_pre_ping": True}` for the Flask-SQLAlchemy configuration did the trick. I hope to be a paying customer soon :)