vendredi 12 avril 2019

Laravel cannot get more than 15k records

I have a very simple query to get records from the database: \DB::table("table")->get();

When I try to get more than ±145000 records from the database I am getting: 500 server error.

The code like: \DB::table("table")->take(14500)->get(); although works. When I try to get more than 15k I get the error immediately without any loading or further information. I cannot get any more info from logs as well. An odd thing is that when I write that code to tinker - I can get all records. (with eloquent works the same)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire