Пример ошибки
SQLSTATE[40P01]: Deadlock detected: 7 ERROR: deadlock detected
DETAIL: Process 3199799 waits for ShareLock on transaction 28066780; blocked by process 3199816.
Process 3199816 waits for ShareLock on transaction 28066777; blocked by process 3199799.
HINT: See server log for query details.
CONTEXT: while updating tuple (78846,29) in relation "notifications" (SQL: update "notifications" set "is_read" = 1, "updated_at" = 2023-02-01 12:26:05 where "notifications"."client_id" = 126473 and "notifications"."client_id" is not null)
sql
update "notifications"
set "is_read" = 1,
"updated_at" = 2023 - 02 - 01 12:26:05
where "notifications"."client_id" = 126473 and "notifications"."client_id" is not null
Явно в транзакцию ничего не оборачиваю. И вот совершенно не понимаю, как это дебажить и фиксить. Помогите :(