Serialization of closure is not allowed #3562
-
I want to export xlsx files with a lot of rows and cells. At some point the memory is no longer sufficient to cache the cells. I have changed the cache driver to batch. When the memory limit is reached now, the remaining cells should be stored in my Redis cache. But I immediately get a serialization error I can't say exactly how to reproduce it. Maybe its a problem with my usage from view? Maybe the view-File is helping?
Here is an example cell where the error was triggered for:
or this cell
i would appreciate any kind of hint or help. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Based on this information I can't tell you what exactly is trying to serialize. However if you run into memory issues with views, you shouldn't be using FromView. FromView uses a lot of memory for already transforming your view into an array of cells before it even starts inserting them. |
Beta Was this translation helpful? Give feedback.
Based on this information I can't tell you what exactly is trying to serialize. However if you run into memory issues with views, you shouldn't be using FromView. FromView uses a lot of memory for already transforming your view into an array of cells before it even starts inserting them.