mardi 23 août 2016

laravel 5 all::() method ALWAYS 500s on large queries

I have been trying to find constant workarounds for my data issues with Laravel 5 in a project I'd like to migrate and I can't seem to find a satisfactory answer as to why Laravel 5 will always throw a 500 error whenever I try to use the "::all()" method on a model. I've implemented the "chunk" method but I am not getting result sets that I want and really I'm in essence wanting a simple "select * from" so I feel it shouldn't be this big a deal.

It will work if the result set is less than a few thousand, anything over and it kills the program. I have my php.ini set to allow 1024M, the query has no joins but just in case, max_execution_time is at 1000, it isn't a post but max_post_value is 1024M -- what gives? Surely Laravel CAN support bringing back large datasets?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire