I need to read about 200k database rows from an Oracle database to be processed into an in-memory data-structure. I don't want to do one gigantic select - does .NET provide built-in functionality for 'paging' such a large result set or do I need to figure out my own approach?
I don't know what this technique is called in order to search for specific topics so my Googling is throwing up very little, and I'm not sure if this is really a .NET or a SQL question.
I had considered I could use a modulus on my id field e.g pseudo:
for(i = 0 to 50)
select * from table where mod(id,50) = i
But I imagine this is perhaps a solved problem on the API (or SQL) side. The data being read is static so performing multiple queries is safe if that's the better option.