Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Showing 1 million rows in a browser

Our Utilty has one single table, and it has 10 million to 50 million rows, There may be a case we need to show 50 million rows in a single page html client page, To show the rows in browser we use jQuery in UI.

To retrieve rows we use Hibernate and use Spring for MVC. I am looking for best practice in retrieving the rows and showing in UI. Should I retrieve a bulk of thousands rows or two thousand rows in Hibernate and buffer to Web Client or a best practice is there ?

like image 839
Leo Prince Avatar asked Jan 30 '26 16:01

Leo Prince


1 Answers

The best practice is not to do this. It will explode the browser memory and rendering engine, and will take too much time to load.

Add a search form to your webapp, make the end user search for what he's interested about, and only display the N first search results, just like Google does.

Nobody is able to do anything meaningful with 50 million rows without searching anyway.

like image 189
JB Nizet Avatar answered Feb 02 '26 05:02

JB Nizet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!