Hello - i have created this solution:
https://homepagelevermann.herokuapp.com/profile
which is reading around 10.000 rows from a mysql-db to a web-app using datatables.
The workflow is as following -
- "normal" GET requesting via server.js => routes => controller
- in the controller the data is read from the mysql-db and stored in an array
- then this array is given to the view (ejs-file) and get rendered
It tooks around 30sec to 60sec till the full data is loaded (and the datatables funcitonality like serach / show entries / page handling) is available.
Is this generally the "correct" approach for reading the data into datatables?
Or am i doing here something generally wrong?
Thanks and KR