medium10 pts · first answer countslockingpostgresql
Workers fighting over jobs
Ten workers pick jobs with SELECT ... WHERE status = 'pending' LIMIT 1 FOR UPDATE, and they mostly wait on each other. Which change lets them grab different jobs in parallel?