Commits on Source (3)
-
Ed Schouten authored
Federation makes use of dedupedSeriesSet to merge SeriesSets for every query into one output stream. If many match[] arguments are provided, many dedupedSeriesSet objects will get chained. This has the downside of causing a potential O(n*k) running time, where n is the number of series and k the number of match[] arguments. In the mean time, the storage package provides a mergeSeriesSet that accomplishes the same with an O(n*log(k)) running time by making use of a binary heap. Let's just get rid of dedupedSeriesSet and change all existing callers to use mergeSeriesSet.
-
Tom Wilkie authored
Deprecate DeduplicateSeriesSet() in favor of NewMergeSeriesSet().
-
Brian Brazil authored
Showing
- discovery/README.md 3 additions, 1 deletiondiscovery/README.md
- storage/fanout.go 4 additions, 2 deletionsstorage/fanout.go
- storage/fanout_test.go 1 addition, 1 deletionstorage/fanout_test.go
- storage/interface.go 0 additions, 70 deletionsstorage/interface.go
- web/api/v1/api.go 3 additions, 4 deletionsweb/api/v1/api.go
- web/federate.go 3 additions, 6 deletionsweb/federate.go