Is entire SQL result set loaded into memory before display?
I'm attempting to use LINQPad as an SSMS replacement, but my queries will time out (or I give up waiting) unless I limit the result set to a certain number of rows with Take(). Does the app load the entire result set into memory before displaying it in either rich text or grid output? SSMS will display results in chunks, adding records to the output grid as they become available from the server. Is LINQPad capable of doing something similar? I see an option in preferences for limiting rich text results to a certain number of rows, but even when I have it set to the default of 1000 my simple query (
from o in tbCompanyObservation select o
) hasn't produced results when I give up waiting after 5 minutes, while adding Take(1000)
to the same query will return the results in less than a second.
Comments
Cross-posted (and revised) to http://stackoverflow.com/questions/17196656/does-linqpad-load-entite-sql-result-set-into-memory-before-displaying-it
http://www.linqpad.net/beta.aspx
This should work around the SqlDataReader limitation. So if you dump a table of a million rows or so in rich text mode, it should quickly complete with the first 1000 rows.
Let me know how you get along.
Can I make a feature request for a similar threshold option for the grid?