Skip to content

Commit 72a5151

Browse files
Google APIscopybara-github
authored andcommitted
docs: update comment for PROFILE QueryMode
feat: add new QueryMode enum values (WITH_STATS, WITH_PLAN_AND_STATS) PiperOrigin-RevId: 680628448
1 parent 463b5a6 commit 72a5151

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

google/spanner/v1/spanner.proto

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,19 @@ message ExecuteSqlRequest {
628628
// execution statistics information.
629629
PLAN = 1;
630630

631-
// This mode returns both the query plan and the execution statistics along
632-
// with the results.
631+
// This mode returns the query plan, overall execution statistics,
632+
// operator level execution statistics along with the results. This has a
633+
// performance overhead compared to the other modes. It is not recommended
634+
// to use this mode for production traffic.
633635
PROFILE = 2;
636+
637+
// This mode returns the overall (but not operator-level) execution
638+
// statistics along with the results.
639+
WITH_STATS = 3;
640+
641+
// This mode returns the query plan, overall (but not operator-level)
642+
// execution statistics along with the results.
643+
WITH_PLAN_AND_STATS = 4;
634644
}
635645

636646
// Query optimizer configuration.

0 commit comments

Comments
 (0)