Closed hengchengfei closed 7 months ago
@AbidRahman-MSFT do you have any suggestion on this?
Thanks @hengchengfei for reporting the issue here. I can reproduce the same issue on a Mac as well - I will discuss with our engineers and get back to you to see if there is any way we can improve the performance for updating larger tables.
Hey @hengchengfei - this is currently a limitation of the API. Please try the following workaround to populate table values using the 1.0 API set, this should greatly improve performance:
console.log(new Date().getMilliseconds() - start.getMilliseconds() + "ms Before setValues ");
//table.values = arrNewValues;
table.select()
await context.sync();
Office.context.document.setSelectedDataAsync(arrNewValues, function (asyncResult) {
if (asyncResult.status == Office.AsyncResultStatus.Succeeded) {
console.log(new Date().getMilliseconds() - start.getMilliseconds() + "ms Done");
}
});
@AbidRahman-MSFT Thank you.
I tried but it taked more time.
hello, we are facing very similar issue on desktop version (windows, however I guess it will be similar on Mac) In our case, the performance is depending on the visible area of the page, see the behavior in attached video.
Word version:
Gist: https://gist.github.com/jakuboppelt/039ae39ca0d4a056ca310a9143fbf729
@gergzk Why was this closed? It is real issue (or at least was). @wangyun-microsoft, @grangeryy, @AbidRahman-MSFT
Hi @4tti,
The issue was closed by Bot because it has been inactive for a long time. It did this to keep the issues list manageable and useful for everyone.
Is this still a problem for you?
No problem, just verified it is much faster now. Although there is small delay before it starts it is better than before. Thanks :)
Great to hear that it has improved. If this continues to be a problem, please open a new issue to track the new ask.
Thanks.
Your Environment
Expected behavior
My add-in (https://analysisplace.com/Solutions/Document-Automation) performs document automation (updates content in a variety of Word docs). Many customers want to be able to update text in largish tables. Some documents have dozens of tables (appendices). I have run into the issue where updating these documents is unacceptably slow (well over a minute) due to the table updates.
Update time by table size: