How can I break the maximum properties limit of json object #2845
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#2845
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I create a worksheet json object, it has 50,000 lines, 200 columns, but before write it to file, code blocked, After searching online, I found that if the properties of the JS object are string, it can create up to 2^23 properties.
https://cmdcolin.github.io/posts/2021-08-15-map-limit
So how can I create a Worksheet json object and write more than 2^23 cells to a excel sheet
Use "dense mode": https://docs.sheetjs.com/docs/csf/sheet#cell-storage (note that you may need to upgrade, see https://docs.sheetjs.com/docs/getting-started/#installation
for more details)
For the specific example:
Live demo: https://jsfiddle.net/dLonc16g/
There's definitely room for performance improvements (it takes 14 seconds locally) but it should scale up to ~50M cells