Posted 23 October 2019, 12:59 am EST
Hi,
I have an issue when trying to load style (font size, font style, font family, font color, background color, etc) from database. When loaded a lot of data (ex. 5230 styles data), it make my browser crash (not responding)/ out of memory.
This is how I load style from database and put it into FlexSheet.
for (let iDataSource_data = 0; iDataSource_data < this.dataSource_data.length; iDataSource_data++) {
// this.formatSheet.applyCellsStyle(this.dataSource_style[iDataSource_data].A, [new grid.CellRange(iDataSource_data, 0, iDataSource_data, 0)]);
}
Imagine I have 50k data, it will loop 50k times and put it into cell one by one, it would consume a lot of memory.
Could you help me to get style data efficiently ?
Thanks,
Oskar Putra