Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have approximately 1,00,000 rows in the database and I have to list all records but the server take long time to display it. i am thinking to use datatable to display records. on one page 20 records are required.

What should I do to decrease server load ?

What I have tried:

I've not start development work, but I'll have to do so, I need advise.
Posted
Updated 22-Apr-17 4:03am
v2
Comments
[no name] 22-Apr-17 9:48am    
Pagination.
Jaydeep Shah 25-Apr-17 5:29am    
In datatable or jqgrid pagination available but point is that how to handle server load !!

1 solution

Don't. It's easy for you, slow as hell, and completely useless for your user.
Think about it: how long would it take you to find the one row you are interested in, when it's somewhere in a list of 100,000 rows? Couple of hours? Probably more.
How many times do you think the user is going to use your site? Because my users wouldn;t finish using it the first time, and I'd get some very abusive calls or emails.

Page it. Search it. Filter it. But never present the user with more than 100 items at a time (less by preference). They will go elsewhere, and damn quickly as well.
 
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