Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Improve performance of fetching bundled aggregations #11825

@clokep

Description

@clokep

As detailed in the jaeger traces from #11611 the bundled aggregations code calculates the bundled aggregations for each event to be returned. To calculate the bundled aggregations for a single event is currently requires 6 queries (across 5 transactions).

For some APIs this is (e.g. /events only returns a single event), but /sync or /messages may return many events causing an explosion of queries.

Some of the fetched data is fairly simple and we should be able to fetch the data for multiple events at once, which should save queries. #11660 has some basic timing info that this might be an improvement, I imagine reducing the round-trips from a remote database would cause the gap to be further improved.

Metadata

Metadata

Assignees

Labels

A-ThreadsThreaded messagesT-EnhancementNew features, changes in functionality, improvements in performance, or user-facing enhancements.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions