Commit a247c7ce authored by Maik Messerschmidt's avatar Maik Messerschmidt
Browse files

Stream results when creating zip.

parent 7a7b93e9
......@@ -159,7 +159,7 @@ class ResultController extends Controller
public function downloadZip() {
$zip = Zip::create("");
Result::all()->each(function($result) use ($zip) {
Result::cursor()->each(function($result) use ($zip) {
$filename = $result->created_at . ".json";
$zip->addRaw($result->getOriginal("data"), $filename);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment