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

ServiceMap Query Optimizations #2367

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

TackAdam
Copy link
Collaborator

@TackAdam TackAdam commented Feb 27, 2025

Description

Optimize the Service Map queries by combining the current getServiceNodeQuery, getServicesEdgesQuery(target), and getServicesEdgesQuery(destination) into one query removing the awaits.

Screenshot of TraceView Before: (5 Queries and 230ms time)
BeforeOpt

Screenshot of TraceView After: (3 Queries and 40ms time)
AfterOpt

Issues Resolved

#2334 - Service Map Optimizations

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Adam Tackett <tackadam@amazon.com>
@TackAdam TackAdam added enhancement New feature or request maintenance and removed enhancement New feature or request labels Feb 27, 2025
@TackAdam TackAdam marked this pull request as ready for review February 27, 2025 21:24
@TackAdam TackAdam merged commit 5cfe888 into opensearch-project:main Mar 4, 2025
28 of 29 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 4, 2025
Signed-off-by: Adam Tackett <tackadam@amazon.com>
Co-authored-by: Adam Tackett <tackadam@amazon.com>
(cherry picked from commit 5cfe888)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ps48 pushed a commit that referenced this pull request Mar 4, 2025
(cherry picked from commit 5cfe888)

Signed-off-by: Adam Tackett <tackadam@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adam Tackett <tackadam@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants