fix: Don't go through the analyze measurement path for profile queries - #5688
Merged
Conversation
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Swiddis
requested review from
LantaoJin,
RyanL1997,
acarbonetto,
ahkcs,
anirudha,
dai-chen,
joshuali925,
mengweieric,
noCharger,
penghuo,
ps48,
qianheng-aws,
songkant-aws,
vamsimanohar,
ykmr1224 and
yuancu
as code owners
August 6, 2026 23:02
mengweieric
approved these changes
Aug 6, 2026
Collaborator
|
Maybe we can hold this PR for now as the PR for |
Collaborator
Author
|
Spoke with Krish, let's revert the one line first, if we need to revert the entire thing later we can just mix this delta in since it's trivial. |
ahkcs
approved these changes
Aug 6, 2026
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Contributor
PR Reviewer Guide 🔍(Review updated until commit 6b67a00)Here are some key observations to aid the review process:
|
Contributor
|
Persistent review updated to latest commit 6b67a00 |
penghuo
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Don't go through the analyze measurement path for
profilequeries.This means that
"profile": true, "analyze": falsequeries are still paying the overhead for query analysis, which includes running the query twice among other things. In local measurement this causes ~800% performance regressions on frontend flows that use"profile": trueassuming negligible overhead.Related Issues
N/A
Check List
--signoffor-s.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.