-
I have a table "chat_room" and then another one "chat_msg" linked to it on its FK room_id (all chat room messages get deleted on cascade when a room is deleted) Unfortunately when I run the sql "delete from chat_room" it timesout regardless of the "set statement_timeout to xxx;" value I put set statement_timeout to 500000; and yet this keeps timing out to, even for just 10K deletion EDIT: this is the error: <title>504 Gateway Time-out</title>504 Gateway Time-out |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Are you running this query from the Supabase SQL editor? If so, the default timeout of 15 sec cannot be changed - see more details in this SO post here. You can workaround this by connecting to DB directly via a client like psql, pgAdmin, TablePlus, or calling this statement via Supabase API. |
Beta Was this translation helpful? Give feedback.
Are you running this query from the Supabase SQL editor? If so, the default timeout of 15 sec cannot be changed - see more details in this SO post here. You can workaround this by connecting to DB directly via a client like psql, pgAdmin, TablePlus, or calling this statement via Supabase API.