Laravel - Slow Queries

dwhicker
FREEOP

6 months ago

Hi all

I am new and testing the free tier.

I wanted to test a very simple Laravel app with filament, nothing fancy.

Production queries are incredidlbe slow. Page loads are 1-2 seconds. Local development its fine.

I have used DB_HOST etc to connect to the datbaes. I also tried DB_URL using the internal url to the db. It make no real difference.

Both web server and db server are on the same region.

Any ideas?

Closed

3 Replies

dwhicker
FREEOP

6 months ago

I use database sessions and the first query to get the session is about 500ms


dwhicker
FREEOP

6 months ago

Local vs production query speeds attached. I’m not expecting local but when I’ve deployed on forge with hetzner droplet or Laravel cloud it’s significantly faster than is offer with railways. I’m open to suggestions


6 months ago

Hello,

I'm sorry but we are unable to assist with deleted projects, feel free to open a new thread if you still need help!

Best,
Brody


Status changed to Awaiting User Response Railway 6 months ago


Status changed to Closed brody 6 months ago


Laravel - Slow Queries - Railway Help Station