php - laravel 5 all::() method ALWAYS 500s on large queries -
i have been trying find constant workarounds data issues laravel 5 in project i'd migrate , can't seem find satisfactory answer why laravel 5 throw 500 error whenever try use "::all()" method on model. i've implemented "chunk" method not getting result sets want , i'm in essence wanting simple "select * from" feel shouldn't big deal.
it work if result set less few thousand, on , kills program. have php.ini set allow 1024m, query has no joins in case, max_execution_time @ 1000, isn't post max_post_value 1024m -- gives? surely laravel can support bringing large datasets?
model::chunk(200, function( $entries ) { // iteration of all/200 foreach( $entries $entry ) { // iteration of 200 entries } }
if still dying, not memory issue, more of max execution issue. have applications can muster through hundreds of thousands of rows ease.
Comments
Post a Comment