I think I'm missing something in the documentation.
I have a RadGridView, which is used to display the results of a search of a table in my database. The table currently has 2.7 million rows in it. I obviously don't want to retrieve all 2.7 million rows in one fell swoop, as that would be inefficient in time and memory.
My application is a WPF app and I don't want to use paging, either. I'd rather tell the user how many rows match the search critieria they entered and show them the first N rows (where N is a number between 100 - 500; the exact number will be determined through testing). Then I would like the user to be able to scroll, much like the "Client Binding to 1 million rows" example does.
I'm using Entity Framework to query the database, but my code is designed to obtain an Entity Context, retrieve the data, then close and dispose of the Entity Context. My data uses Guids as the unique ID of the rows. I've written a search function which retrieves the IDs of the rows that match the criteria in chunks of a fixed size. it then tries to load the data for these rows, and this runs OK if the number of matching rows is less than 10,000. If the number of matching rows is larger than 10,000, it can take a minute or longer to get the data, depending on the number of matches.
This is all too slow and too memory intensive. I need a better way to get the data, load only what the user is interested in and make it seem like all of it was loaded incredibly fast. How do I get this to work?
Tony
I have a RadGridView, which is used to display the results of a search of a table in my database. The table currently has 2.7 million rows in it. I obviously don't want to retrieve all 2.7 million rows in one fell swoop, as that would be inefficient in time and memory.
My application is a WPF app and I don't want to use paging, either. I'd rather tell the user how many rows match the search critieria they entered and show them the first N rows (where N is a number between 100 - 500; the exact number will be determined through testing). Then I would like the user to be able to scroll, much like the "Client Binding to 1 million rows" example does.
I'm using Entity Framework to query the database, but my code is designed to obtain an Entity Context, retrieve the data, then close and dispose of the Entity Context. My data uses Guids as the unique ID of the rows. I've written a search function which retrieves the IDs of the rows that match the criteria in chunks of a fixed size. it then tries to load the data for these rows, and this runs OK if the number of matching rows is less than 10,000. If the number of matching rows is larger than 10,000, it can take a minute or longer to get the data, depending on the number of matches.
This is all too slow and too memory intensive. I need a better way to get the data, load only what the user is interested in and make it seem like all of it was loaded incredibly fast. How do I get this to work?
Tony