Skip to content

[Bug]: #3494

Answered by patrickbrouwers
bilfeldt asked this question in Q&A
[Bug]: #3494
Jan 14, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

There's unfortunately not a lot we can do about that here. The performance issue is within PhpSpreadsheet which builds an entire array of cells (to be interchangable with Excel types), something that you circumvent if you do a fputcsv directly. (Only current chunk is kept into memory). PhpSpreadsheet inserts the entire array of cells at once, not row per row. (So very logical that the performance is very different)

If you need a high performance export, use fputcsv (or an abstraction like league/csv). (We might open source our drop-in csv export package in the future, however for now that is closed source)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bilfeldt
Comment options

@patrickbrouwers
Comment options

Answer selected by bilfeldt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3493 on January 14, 2022 16:44.