microl44 / Julet

Website visualizing data from my watched movies, brought forward by the jul.
3 stars 1 forks source link

Improve loadtime of first table #103

Closed microl44 closed 1 month ago

microl44 commented 2 months ago

Currently all rows are fetched from the database, which takes up to two seconds in some cases.

An improvement would be to fetch the first 10 rows, insert them into the table and then fetch the remaining rows before the user changes table page.

Other ideas to speed up the load-time can be proposed.

microl44 commented 1 month ago

Solved as of solution for #118.

Two part solution, one part was unnecessary creation of database connection in api. Second part was initially creating async fetch requests that was only processed once participant information was complete.