Replies: 2 comments 2 replies
-
@patrickbrouwers Any sugestions? |
Beta Was this translation helpful? Give feedback.
1 reply
-
use this library instead, phpspreadsheet is really bad at exporting large data sets because it highly depends on in memory cache |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I am trying to export 500,000 records but noting seems to work at the moment.
laravel version : 7.3
Excel version : 3.1.30
Memory_limit : -1
I tried few things but didn’t find any success yet hoping for someone to provide some suggestion
#2209
https://stefanzweifel.io/posts/lazy-collections-in-laravel-excel/
My code
CONTROLLER
(new TagsExport)->queue('exports/tags' . date('Y-m-d H_i') . '.xlsx'); echo back()->withSuccess('Export started!');
TagsExport.
Below code work for 15000 rows
After using query method it successfully export 20K rows but break 25000 rows with following error
ArgumentCountError: Too few arguments to function Illuminate\Support\Collection::get(), 0 passed in vendor/maatwebsite/excel/src/Jobs/AppendQueryToSheet.php on line 96 and at least 1 expected in vendor/laravel/framework/src/Illuminate/Support/Collection.php:413
Khush
Beta Was this translation helpful? Give feedback.
All reactions