Really slow PostgreSQL queries...
diegomax
HOBBYOP

5 months ago

Something like:

DELETE FROM waiting_users WHERE socket_id = ? AND language = ?

which takes 1ms on my local docker postgresql instance, is taking around 12 seconds (yes, SECONDS) on my PostgreSQL instance on railway. Both the app and the sql instance are at the same zone so i doubt its a network issue.

The primary key on the table is (socket_id, language), so in fact a simple delete by primary key cant be this slow. The waiting_users table IS partitioned by country (if that matters).

Please let me know if this is the expected SQL performance around here, because even tho im on the $5 plan to testing things, i think 12 seconds for a delete by primary key is unacceptable.

Thanks.

// Diego

Solved

11 Replies

Railway
BOT

5 months ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


chandrika
EMPLOYEE

5 months ago

Hi there, 12s is not the expected SQL performance — we are working on a fix for this but it may take some time to implement.

In the interim, we're happy to move you back to the Cloud machines (which are dead cold as we moved to shut them down)

Please let us know


Status changed to Awaiting User Response Railway 5 months ago


diegomax
HOBBYOP

5 months ago

Hi there, thanks for the response, i already removed / reworked the little stuff that was using postgresql into redis (it was due anyway), so this is not an issue (at least for me) anymore, thanks for your quick response tho.

// DIego


Status changed to Awaiting Railway Response Railway 5 months ago


jake
EMPLOYEE

5 months ago

Gotchya. Will close this one out and if it returns don't hesitate to re-open!


Status changed to Awaiting User Response Railway 5 months ago


Status changed to Solved jake 5 months ago


Railway
BOT

4 months ago

🛠️ The ticket Performance issue with disk operations on metal has been marked as todo.


Railway
BOT

2 months ago

✅ The ticket Performance issue with disk operations on metal has been marked as completed.


Railway
BOT

2 months ago

🛠️ The ticket Performance issue with disk operations on metal has been marked as in progress.


Railway
BOT

2 months ago

✅ The ticket Performance issue with disk operations on metal has been marked as completed.


Railway
BOT

2 months ago

🛠️ The ticket Performance issue with disk operations on metal has been marked as in progress.


Railway
BOT

2 months ago

🛠️ The ticket Performance issue with disk operations on metal has been marked as in progress.


Railway
BOT

2 months ago

✅ The ticket Performance issue with disk operations on metal has been marked as completed.


Loading...