1

I have a table with about 35,000 rows, I want to retrieve it and var_dump all the rows but I could not.

Then I limit the number of rows by 2000, that is alright.

What is the problem, is Laravel Eloquent limiting the number of row each time retrieve or is the hardware problem?

Kent Liau
  • 915
  • 15
  • 26

1 Answers1

1

After discussion: You're hitting the memory limit on the server...

The solution is either

  1. increase the limit there, or
  2. find another way to process the users, per 2000 users for example...

the second is more scalable, the question you should ask yourself is

"What happens when I have 1000 times the number of users?"

msturdy
  • 10,479
  • 11
  • 41
  • 52