Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] using quick-filter "shared with my org" takes arround 90 seconds #1979

Closed
crackytsi opened this issue Apr 16, 2021 · 1 comment
Closed
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@crackytsi
Copy link

crackytsi commented Apr 16, 2021

Request Type

Bug

Work Environment

Question Answer
OS version (server) Debian
OS version (client) 10
Virtualized Env. False
Dedicated RAM 64 GB
vCPU 8
TheHive version / git hash 4.1.4
Package Type DEB
Database Cassandra
Index type Lucene
Attachments storage Local

Problem Description

Using Quick-filter "shared with my org" takes very log to load and all 8 CPUs are high CPU usage.
Some details:
/api/v1/query?name=cases.count
image

{"query":[{"_name":"listCase"},{"_name":"filter","_not":{"_like":{"_field":"owningOrganisation","_value":"myOrg2"}}},{"_name":"limitedCount"}]}

/api/v1/query?name=cases

image
{"query":[{"_name":"listCase"},{"_name":"filter","_not":{"_like":{"_field":"owningOrganisation","_value":"myOrg2"}}},{"_name":"sort","_fields":[{"flag":"desc"},{"startDate":"desc"}]},{"_name":"page","from":0,"to":15,"extraData":["observableStats","taskStats","procedureCount","isOwner","shareCount","permissions","actionRequired"]}]}

@crackytsi crackytsi added TheHive4 TheHive4 related issues bug labels Apr 16, 2021
@To-om
Copy link
Contributor

To-om commented Apr 30, 2021

The field "owningOrganisation" is not indexed. This is why the query is slow. This can be fixed in the next release.

@To-om To-om self-assigned this Apr 30, 2021
@To-om To-om added this to the 4.1.5 milestone Apr 30, 2021
@To-om To-om closed this as completed May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

2 participants