prometheus/tsdb/index
Oleg Zaytsev fd1a89b7c8
Pass affected labels to MemPostings.Delete() (#14307)
* Pass affected labels to MemPostings.Delete

As suggested by @bboreham, we can track the labels of the deleted series
and avoid iterating through all the label/value combinations.

This looks much faster on the MemPostings.Delete call. We don't have a
benchmark on stripeSeries.gc() where we'll pay the price of iterating
the labels of each one of the deleted series.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2024-06-18 10:28:56 +00:00
..
index.go add unit test 2024-06-16 12:09:42 -07:00
index_test.go add unit test 2024-06-16 12:09:42 -07:00
postings.go Pass affected labels to MemPostings.Delete() (#14307) 2024-06-18 10:28:56 +00:00
postings_test.go Pass affected labels to MemPostings.Delete() (#14307) 2024-06-18 10:28:56 +00:00
postingsstats.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2024-02-28 14:54:53 +01:00
postingsstats_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00