I have a C# program that populates a dictionary with 4Million Guids at startup. I keep getting an Exception of type 'System.OutOfMemoryException' error at this point.
Example:
using (reportingconn)
{
var initialrowkeys = reportingconn.Query("select rowkey from table”);
}
Can anyone give me some ideas how best to retrieve large amounts data from SQL into a dictionary?