-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SOM] use aggregation for type counts #168918
Conversation
const counts = buckets.reduce((memo, bucket) => { | ||
memo[bucket.key] = bucket.doc_count; | ||
return memo; | ||
}, {} as Record<string, number>); |
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.
We have API integration FTR tests for this endpoint:
describe('scroll_count', () => { | |
describe('with less than 10k objects', () => { |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
To update your PR or re-run it, just comment with: |
Pinging @elastic/kibana-core (Team:Core) |
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.
👏🏻
## Summary Use an aggregation for type counts in SO management instead of scrolling through all the documents. --------- Co-authored-by: kibanamachine <[email protected]>
Summary
Use an aggregation for type counts in SO management instead of scrolling through all the documents.