Skip to content

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