Laravel Queue Slow Query #50144
-
Hi, I am using laravel queue. but I am struggling with so slowing on laravel application. (CPU 8, RAM 32GB, IOPS 100MB/s) select * from jobs where queue = 'default' and ((reserved_at is null and available_at <= 1707701703) or (reserved_at <= 1707701613)) order by id asc limit 1 FOR UPDATE SKIP LOCKED; |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Laravel Pulse |
Beta Was this translation helpful? Give feedback.
-
DB queue is not recommended in prod environment because its inability to offer ATOMIC locks. SQS or other messaging system is recomended. |
Beta Was this translation helpful? Give feedback.
-
Hi @marius-mcp, this query slowing happens too many per day. any thoughts? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
DB queue is not recommended in prod environment because its inability to offer ATOMIC locks. SQS or other messaging system is recomended.