Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

meetgodhani's avatar

What is the best way to update one field with rows resulting 15k?

Hi

What is the most optimized way to update mass rows which are more than 15k in number without getting time out ? Using Laravel.

Any suggestion.

0 likes
2 replies
jekinney's avatar

Yes, chunk and a queued command or event. Chunking is very efficient as the time to execute isn't significantly longer and doesn't use up your servers memory.

Please or to participate in this conversation.