Skip to content

[Bug] Slow loading of TheHive because of Tags #1869

Closed
@crackytsi

Description

@crackytsi

Request Type

Bug

Work Environment

Question Answer
OS version (server) Debian
OS version (client) 10
TheHive version / git hash 4.1.0
Package Type DEB

Problem Description

Starting the TheHive page or directly jumping to a case using a link takes several times.
By analyzing this, the root-cause seems to be related to URL:

/api/v1/query?name=list-tags The Tag-List on my test system with 800 Cases and 7366 Tags is about 2 MB. That means on my prod system the tag-list with arround 20000 Cases is more than 20x slower

Unfortunately this prevents me from migrating to 4.1 in Prod :-(

Possible Solutions

Do not provide Tag-list to FE and auto-complete Tag list based on backend.
It seems that this functionality is only used for auto-complete.

Alternative specify which tags should be auto-completed (e.g. all non-free tags).

BTW: Why are there 2 ~chars in the URL of a case? /index.html#!/case/~~44187888/details

Solution

The solution is to cache only the free tags that define a custom colour:

  • BE (@To-om) Add free tag custom colour to /api/status output
  • FE (@nadouani) Cache only free tags with custom colour

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions