Skip to content
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

search: add indexes and use word-search #1860

Merged
merged 16 commits into from
Aug 20, 2021
Merged

search: add indexes and use word-search #1860

merged 16 commits into from
Aug 20, 2021

Conversation

mastercactapus
Copy link
Member

Description:
This PR updates search behavior to use a word-based approach instead of a substring match. Doing so allows index-based searching which is a lot more performant (especially when searching through alert summaries).

Additionally, the alert query was broken up into two steps, one to get a list of services that match the query, and a second purely for the alerts with matching queries or service names. This substantially improved query time and memory use in Postgres.

@arurao arurao self-requested a review August 19, 2021 14:56
@m17ch m17ch self-requested a review August 19, 2021 16:20
m17ch
m17ch previously approved these changes Aug 19, 2021
Copy link
Contributor

@m17ch m17ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

m17ch
m17ch previously approved these changes Aug 19, 2021
Copy link
Contributor

@arurao arurao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mastercactapus mastercactapus merged commit 4c6c902 into master Aug 20, 2021
@mastercactapus mastercactapus deleted the search-perf branch August 20, 2021 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants