I make a lot of requests in my db from php, some of them is triggered by a javascript.
For example I have one page that makes a table in html, each row shows a calculation of the result from the fetch in db.
The table where I fetch the result is big about 50000 rows and has more than 200 columns but I only fetch the neccesary columns.
So I ended up with a click on a button triggering the first fetch by jquery/ajax, on result the next jquery/ajax is triggered, until all result on the page is done.
Even though it is a big improvement from making a FULL result it is still heavy on the server.
My general question is, how do I most efficiently handle large searches in my db?
I am familiar with html, php, javascript and css.
Thanks in advance!