-
Notifications
You must be signed in to change notification settings - Fork 5
Instant query optimization v2 #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: pp
Are you sure you want to change the base?
Conversation
# Conflicts: # pp/entrypoint/go_constants.h # pp/go/cppbridge/entrypoint.h # pp/go/storage/querier/series.go # pp/go/storage/querier/series_bench_test.go
vporoshok
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please improve imports grouping in IDE
| // samples, dsQueryResult := ds.InstantQuery(targetTimestamp, valueNotFoundTimestampValue, lssQueryResult.IDs()) | ||
| // require.Equal(t, cppbridge.DataStorageQueryStatusSuccess, dsQueryResult.Status) | ||
| // return querier.NewInstantSeriesSet(lssQueryResult, snapshot, valueNotFoundTimestampValue, samples) | ||
| //} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove instead of comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
# Conflicts: # pp/go/storage/storagetest/fixtures.go
pp/go/storage/querier/querier.go
Outdated
| } | ||
|
|
||
| samples, result := s.DataStorage().InstantQuery(q.maxt, valueNotFoundTimestampValue, lssQueryResult.IDs()) | ||
| instantSeries := make([]InstantSeries, lssQueryResult.Len()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repeatable pattern. Maybe create method NewInstantSeries(size int, defaultTimestamp int64)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
| storagetest.MustAppendTimeSeriesToLSSAndDataStorage(lss, ds, timeSeries...) | ||
| } | ||
|
|
||
| func BenchmarkInstantSeriesSet(b *testing.B) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refactored this function, why you don't use my version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
No description provided.