I am learning C# and trying to figure out more about collections. I hired a tutor a few days ago and he was telling me the virtues of Linq for iterating through large data results, and so I was planning on using that, but now am wondering if I understood incorrectly.
I am querying Mysql and will have up to 200,000 results which will need to be formatted and posted in groups of 500 to an HTTP server as JSON. Should I be making a single query and then using Linq to paginate the results, or should I be breaking the SELECT up into groups of 500?
My understanding is that the data flow is:
Mysql
=> MysqlDataAdapter
=> Fill DataSet
=> Use Linq to paginate
Or
Mysql
=> MysqlDataAdapter (Limit 500)
=> Fill DataSet
Just trying to figure out which way makes more sense from a performance perspective. It will be querying localhost.