I am using ASP.NET and SQL Server. I would like to load data from database asynchronously and show data which are partially loaded immediately.
Suppose there are tons of records in a query result. After 3 sec,It loads 20% then I have to process and show 20% data immediately, not waiting for complete response. I know $.Ajax in jQuery to load data async. Is it possible to process partial response, Not wait for complete response and show it immediately.
Is there any way to get this?
You have to aks yourself: Will the end user see a ton of records at once?
You don’t specify what and how you are showing the data, so I’m going to assume that you are showing the data in something like a Grid.
What we do this days on such commun scenario is to load data using pages and fire it when the user scrolls the grid down, you can even see this in mobile devices and even on facebook, Twitter, etc…
It will load the first page (for example we set up the page to be 20 records), so it will load the first 20 records (page 0), but soon you reach the bottom, it will automatically load 20 more records (page 1).
This technique is called Infinite Scroll