-
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
141189 alerts table performance #141385
141189 alerts table performance #141385
Conversation
Pinging @elastic/response-ops (Team:ResponseOps) |
const getFieldCategoryFromColumnId = (columnId: string): string => { | ||
const fieldName = columnId.split('.'); | ||
|
||
if (fieldName.length === 1) { | ||
return 'base'; | ||
} | ||
|
||
return fieldName[0]; | ||
}; |
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 love this one, it simplifies the search to constant time 💯
The only exception to that criteria are runtime fields, but I don't think you have to deal with them on your side yet.
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.
LGTM! Thanks for taking care of this @jcger 🚀
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.
If @semd is happy, I am happy ;)
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
* retrieve data without loops and work with columns instead of ids * not found column when category doesnt exist (cherry picked from commit 76b2624)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Summary
Closes #141189