-
Notifications
You must be signed in to change notification settings - Fork 243
Description
Description:
As discussed in the Slack thread, we are experiencing degraded performance when using the postgres database driver. The most noticeable issue is around multi-hop queries.
The example used in the thread was this but any strongly typed multi hop query seems to either hang or take a very long time.
MATCH p = (n:Base)-[:HAS_ACCESS_TO]->(:Safe)-[:Contains]->(:Secret)-[:CredentialOf]->(:Computer)
As this is using a mixture of AD and OpenGraph nodes, during debugging I was initially using the "Contains" edge which is already in-built, changing this to something custom did at the time seem to provide a bit of a performance boost but I think it may have been placebo.
Are you intending to fix this bug?
Happy to assist with any debugging / testing Postgres tuning
Component(s) Affected:
- UI
- API
- PostgreSQL
Steps to Reproduce:
- Ingest AD and OpenGraph Data
- Execute a multi-hop query such as the one above
Expected Behavior:
Graph data is returned in a reasonable amount of time.
Actual Behavior:
Data either does not return or takes a considerable amount of time.
Screenshots/Code Snippets/Sample Files:
N/A
Environment Information:
BloodHound: v8.2.0
Database: postgres:16
Additional Information:
Potential Solution (optional):
PostgreSQL tuning
Related Issues:
N/A
Contributor Checklist:
- I have searched the issue tracker to ensure this bug hasn't been reported before or is not already being addressed.
- I have provided clear steps to reproduce the issue.
- I have included relevant environment information details.
- I have attached necessary supporting documents.
- I have checked that any JSON files I am attempting to upload to BloodHound are valid.