Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Hi,

I am binding GridView with dataset of 12 millions of records with 18 columns. I use different cases(without paging)
Case1:-a grid with Autogenerated columns False. (I generate 18 columns inside gridview) Time taking to load 45 minutes.
Case2:- Geneare a grid with Autogenerated columns True. Directly assigning DataSource property and DataBind to Gridview Control.
Time taking to load 60 minutes.

Please tell me how to reduce the time for loading. I am using this .aspx page for showing the report data.
please share any idea and solution to me.
Posted
Updated 21-Aug-14 19:55pm
v6
Comments
[no name] 22-Aug-14 6:16am    
You would still need to change the laws of physics.
Per Söderlund 22-Aug-14 8:20am    
What are you going to do when you have populated the grid?
Are you going to read it or will someone else do it?
Why do you need to show that much data?
krish2013 25-Aug-14 3:35am    
Hii Soderlund,
Thanks for reply to me.i want only display 20 lakhs records only.please share any idea or information to me.

As you were told last time you posted this question: how to bind 12 to 20 lakhs records into gridview within fraction of seconds[^] (and deleting questions because you don't like the answer is rude)
That is a very stupid idea.

For anyone else that is reading, 2,000,000 rows of data in a single control is stupid: it will take a user days to find the info he wants.
Add to that the transfer time to move 2,000,000 rows of 18 columns of data over a "normal" broadband connection and it can't be done in 5 minutes, even if the database server could feed the data instantaneously to the webserver, and the browser took no time at all to render the page.

Please stop posting the same question, sit down, and do the job properly: you cannot do this, it will not work.
 
Share this answer
 
Comments
Raul Iloc 22-Aug-14 1:54am    
I totally agree with you! You have my 5+.
Per Söderlund 22-Aug-14 8:25am    
You got a 5 from me too.
A reality check is needed.
Matt T Heffron 22-Aug-14 18:01pm    
+5!!!
ChintanShukla 1-Sep-14 8:10am    
+20 lakhs.
You must use pagination, especially because is a web application and you have a huge amount of data! I have an article about this subject, where I explained why you need this, and there you could find also source code.
Advanced ASPX GridView Pagination and Data Entities[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900