Closed ericr90 closed 3 years ago
PhpSpreadsheet is known to have difficulties processing very large datasets. When dealing with large datasets and csv, we usually use csv directly. We have a closed source library in the same fashion as this package that only uses csv. (In the simple cases, it should only be a replace of namespace) Feel free to shoot us an e-mail if you would be interested in buying a license.
This bug report has been automatically closed because it has not had recent activity. If this is still an active bug, please comment to reopen. Thank you for your contributions.
Hi @ericr90, I had a project which also needed to export huge datasets and was experiencing memory issues.
I created a Laravel project https://github.com/vitorccs/laravel-csv/ which can export huge CSV files, and has been inspired on this awesome library Laravel-Excel, implementing some cool stuffs like FromQuery, WithMapping, WithHeadings, etc.
Hope this can be useful for you or other people.
Prerequisites
Versions
Description
When trying to export big datasets, we encounter memory issues when generating the download file. I tried various options to solve this problem, but I'm out of options. What I've tried:
Export goes to csv. I checked memory usage througout the script. All goes well until I call the Excel::store() function. Then memory goes through the roof, ending up in a memory exception. Ini_set tricks would work for small datasets, but it's not a real option for bigger datasets.
What other options do I have?