Skip to content

Tag: eloquent

Laravel controller function times out, 50000 users

In my controller I have a have a function to check subscription status and update it in my database. The problem is with 50000 users, it takes too long to finish and times out. I’m sure I shouldn’t even process that many at a time but I kinda got stuck here and am not sure how exactly to approach …