-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
71817: sql/server/ui: Use summarized statement formats on Sessions and Transactions pages r=lindseyjin a=lindseyjin Resolves #71730 Previously, we implemented new statement summaries (for SELECT, INSERT/UPSERT, and UPDATE statement types) to be used on the Statements page to provide more detail and reduce ambiguity between short statements. For consistency's sake, we are also going to default to using these summarized formats on the Sessions and Transactions pages. For Sessions, this change involves adding a new field "sql_summary", to the active queries proto so that it can be passed to the front-end. For Transactions, instead of showing all the query text concatenated as the label, we now show all the query summary text concatenated. Sessions page ![image](https://user-images.githubusercontent.com/29153209/138318658-9605e82c-39ed-4fb0-bb56-5bb1d7009d5c.png) <img width="514" alt="Screen Shot 2021-10-21 at 2 07 26 PM" src="https://user-images.githubusercontent.com/29153209/138333416-9aa6a877-844c-4f89-9122-e40d0048915d.png"> Transactions page ![image](https://user-images.githubusercontent.com/29153209/138318623-172c23c2-509f-4880-85cc-bed7abbbb95e.png) Additionally, we now show "Mean Rows Written" as a metric on the Statement Details page for all statement types, including SELECT statements, since we realized there's an edge case where SELECT statements that embed INSERT statements may still modify rows. Release note (ui change): Use new summarized formats for SELECT, INSERT/UPSERT, and UPDATE statements on the Sessions and Transaction pages, to be consistent with the Statements page. Show "Mean rows written" as a metric for all statement types on the Statements page, instead of hiding this metric for SELECT statements. Co-authored-by: Lindsey Jin <[email protected]>
- Loading branch information
Showing
14 changed files
with
537 additions
and
317 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.