joplin / plugin-kanban

It allows notes in a notebook to be organized in a kanban board.
https://discourse.joplinapp.org/t/kanban-board-project/17469
131 stars 17 forks source link

Speed up loading time and show a loading text #10

Closed shinglyu closed 2 years ago

shinglyu commented 2 years ago

This PR is based on #9. The main speedup is to make all the queries for notes, before querying the tags, otherwise, each note query needs to wait for the tags query. Also I use Promise.all to fire all tags queries simultaneously so it's faster then making all the queries sequentially. This reduced the loading time for a big folder from ~8 sec to ~4 sec.

I added a text "Loading..." when the GUI is waiting for the "backend" to feed it data. So the user feels it's loading faster.

mablin7 commented 2 years ago

Neat! Thanks for the PR