Raw SQL Query Question
I have a raw SQL query that I need to execute against a database that's external to my application. The query is expected to return >5,000,000 records. Therefore, returning the records in memory (list) causes the application to crash due to running out of memory, even on a server with 122GB.
Is it possible to enumerate over the records instead, so that I don't have to deal with them all in memory?
Is it possible to enumerate over the records instead, so that I don't have to deal with them all in memory?