Skip to content
Snippets Groups Projects
Verified Commit 87ae723c authored by Antoine Lambert's avatar Antoine Lambert
Browse files

cassandra: Improve snapshot_count_branches performance

It has been observed calling that method can lead to cassandra
query timeout when a snapshot contains a large amount of branches.

The performance bottleneck seems to be the use of a custom cassandra
aggregate function computing the number of branches per target type.

Removing the use of that function and performing the aggregation
client side significantly improves query performance and makes
the timeout issue goes away.

Fixes #4719.
parent 5c4debef
No related branches found
Tags v2.9.1
1 merge request!1162cassandra: Improve snapshot_count_branches performance
Pipeline #13046 failed