Friday, March 9, 2012

QA/SSMS results caching

I am not sure this is the right forum for this question, but I would appreciate any pointers towards more appropriate forums.

I am attempting to replicate the data browsing performance of Microsoft's QA/SSMS in my own application. Even for very large datasets, one can typically scroll through a few hundred thousands rows without a problem. For queries this large, a generic DataGridView setup would take forever. Digging around using Process Explorer, I saw that QA/SSMS was loading the results into a (what I presume to be a memory-mapped) temporary file, which it used to cache the results for display.

Is there an example of how this is being done? I am assuming it is using unmanaged code, as I am not aware of any interfaces to memory mapped files in .NET. I don't have much experience here, so I would appreciate any help. Thanks.

Did you use the DataGridView with VirtualMode On ? You can even use pagination for the GridView so you don′t need to pull out all data at once from the server. We used that a lot and its pretty usable.

HTH, Jens K. Suessmeyer.


http://www.sqlserver2005.de

No comments:

Post a Comment