Does anyone encounter a performance issue when deleting the first row in an Excel file larger than 20,000 rows using the OpenXML SDK v2.0?
I am using the delete string encoding proposed in the Open XML SDK document. I need a few minutes to delete the first row using the Open XML SDK, but in Excel, it only takes a second.
In the end, I found out that the bottleneck is actually based on a bubble approach when working with row removal. After the deleted row, many rows are updated. Therefore, in my case, about 20,000 rows are updated, which leads to data shift by row.
I wonder if there is a faster way to do a row deletion.
Anyone have an idea?
performance excel openxml openxml-sdk
Perpetual learning
source share