Is there a way I can process the request to process next NumberOfRecord
only, and return TotalOfRecords when PageIndex is requested?
It’s been a while since you posted the question, have you found a solution ?
Based on the context of question I assumed you are using ASP.Net GridView
to do pagination. There are a number of ways to do pagination in MongoDB
and *it depends* on your use case and dataset and performance requirements.
If you have a large dataset, try to use the custom pagination of GridView
by setting AllowCustomPaging="true". You would need to write your own
methods to step through the pages. For more information on custom paging of
GridView see :