ToDataSourceResult is very very slow on Large datasets - getting the Total Count is the issue, have an option to omit the total count or provide a way to inject the total count with some more efficient code.
Posted on:01 Jul 2021 12:12
We need to decline this item as we did not receive example or further details on the use case and can not validate it.
The count operation should not usually affect the performance noticeably. Would you elaborate in more detail on what is your scenario - how are you retrieving the records from the database and how the count operation is performed?