[GH-ISSUE #382] long delay when selecting tags in UI #251

Closed
opened 2026-03-02 11:48:03 +03:00 by kerem · 6 comments
Owner

Originally created by @cirrusflyer on GitHub (Sep 9, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/382

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.

Originally created by @cirrusflyer on GitHub (Sep 9, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/382 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.
kerem 2026-03-02 11:48:03 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kamtschatka commented on GitHub (Sep 11, 2024):

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?

<!-- gh-comment-id:2344700110 --> @kamtschatka commented on GitHub (Sep 11, 2024): 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?
Author
Owner

@cirrusflyer commented on GitHub (Sep 11, 2024):

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

<!-- gh-comment-id:2344756381 --> @cirrusflyer commented on GitHub (Sep 11, 2024): I have too many tags to count. Is there a way to get a count?
Author
Owner

@cirrusflyer commented on GitHub (Sep 11, 2024):

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

<!-- gh-comment-id:2344759020 --> @cirrusflyer commented on GitHub (Sep 11, 2024): Looks like over 6000 tags based on a copy and paste to another file and counting the rows.
Author
Owner

@kamtschatka commented on GitHub (Sep 11, 2024):

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.

<!-- gh-comment-id:2344766321 --> @kamtschatka commented on GitHub (Sep 11, 2024): 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.
Author
Owner

@cirrusflyer commented on GitHub (Sep 11, 2024):

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

<!-- gh-comment-id:2344783434 --> @cirrusflyer commented on GitHub (Sep 11, 2024): That's a big improvement! Will that be pushed to Docker soon?
Author
Owner

@kamtschatka commented on GitHub (Sep 12, 2024):

Depends on:

  • When it gets merged. I am a contributor, the maintainer needs to review and merge it
  • Which docker container you are using. If you are using stable, then it usually takes more than a month to release new versions, so you'll have to wait. If you are using the latest docker container, it would be made available pretty fast after the merge, but you'd be using a development version of hoarder, which potentially has more bugs.
<!-- gh-comment-id:2345858506 --> @kamtschatka commented on GitHub (Sep 12, 2024): Depends on: * When it gets merged. I am a contributor, the maintainer needs to review and merge it * Which docker container you are using. If you are using stable, then it usually takes more than a month to release new versions, so you'll have to wait. If you are using the latest docker container, it would be made available pretty fast after the merge, but you'd be using a development version of hoarder, which potentially has more bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#251
No description provided.