Skip to content

Tempo queries are very slow when using some tags #2639

Answered by mapno
ogxd asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ogxd. To give a bit of context on how Tempo's read path works:

Tempo doesn’t do indexing of attributes, but rather uses a columnar storage format to support the requirements you’re referencing regarding search. We use Apache Parquet.

What this allows Tempo is to pull individual columns (mapped as different attributes) from storage when searching with TraceQL, reading a lot less data than with a more common row-wise model. So, for the query { resource.namespace = "prod" }, Tempo will only pull a single column resource.namespace (roughly, it’s more complex than just that).

The problem you're experiencing comes from the static schema we work with in parquet. In this schema, intrinsic fie…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@ogxd
Comment options

@mapno
Comment options

Answer selected by ogxd
Comment options

You must be logged in to vote
1 reply
@ogxd
Comment options

Comment options

You must be logged in to vote
1 reply
@mapno
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants