hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
3.4k stars 123 forks source link

long delay when selecting tags in UI #382

Open cirrusflyer opened 1 week ago

cirrusflyer commented 1 week ago

I have nearly 4000 bookmarks, so a lot of tags. When I select the "Tags" on the left UI menu, it takes around 14 seconds to display the list. Hoarder is running on a server with a Celeron N5105, 16 GB RAM, and SSD storage.

kamtschatka commented 5 days ago

This is most likely not related to the database query/your server, but rather on the UI showing all those tags. How many tags do you have? Should you not have less tags than bookmarks, to keep everything grouped together?

cirrusflyer commented 5 days ago

I have too many tags to count. Is there a way to get a count?

cirrusflyer commented 5 days ago

Looks like over 6000 tags based on a copy and paste to another file and counting the rows.

kamtschatka commented 5 days ago

yeah, i was able to reproduce the issue, with 4000 tags that I added directly in the datbase and rendering took about 5 seconds for me. I optimized the code and got it to below 2 seconds. Maybe someone else with more knowledge of React has better ideas, but at least it improved quite a bit already.

cirrusflyer commented 5 days ago

That's a big improvement! Will that be pushed to Docker soon?

kamtschatka commented 5 days ago

Depends on: