Memory leak after row insertion

Posted by: kitazawm on 22 November 2019, 4:33 am EST

  • Posted 22 November 2019, 4:33 am EST

    Hi.

    ■Content

    When adding rows to the spreadsheet, the memory will increase by about 500MB.

    As a result, adding more than a few lines can cause memory pressure.

    UndoTransaction is used for row insertion processing.

    I want to know how to limit the number of undoTransaction stacks.

    ■Supplement

    There are about 50 columns in the spreadsheet.

    It contains cell formats and values.

    ■code sample

    Commands.startTransaction(context, options);

    sheet.addRows(rowno, 1);

    Commands.endTransaction(context, options);

    ■environment

    spreadJS ver12.1.0.

    The browser uses the latest version of Google Chrome.

  • Posted 25 November 2019, 5:32 am EST

    Hi,

    We are sorry but with the current public API, it is not possible to limit the no of undo operations and hence we have added an enhancement request to support this feature. The internal tracking id for the issue is SJS-2652. We will let you know about any updates regarding the same.

    Regards

    Sharad

  • Posted 25 November 2019, 10:50 pm EST

    Hi

    Thank you for your reply.

    We wait for update.

    regards

    kitazawm

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels