I have about 500K rows I need to return from my database (please don\'t ask why).
I will then need to save these results as XML (more URGH) and the ftp this file to some
using Dapper's Query method, which throws the entire result set into memory
Query
It is a good job, then, that one of the optional parameters is a bool that lets you choose whether to buffer or not ;p
bool
Just add , buffer: false to your existing call to Query.
, buffer: false