google-cloud-go icon indicating copy to clipboard operation
google-cloud-go copied to clipboard

feat(datastore): Add query profiling

Open bhshkh opened this issue 1 year ago • 2 comments

Introducing ExplainOptions:

  • When ExplainOptions is not used: Datastore plans and executes the query. Only returns the query results.
  • When ExplainOptions.Analyze is false: Datastore plans but does not execute the query. Only returns planner stage information. Can be used to check that a query has the necessary indexes and understand which indexes are used.
  • When ExplainOptions.Analyze is true: Datastore plans and executes the query. Returns query results, planner stage information and execution statistics.

samples at https://github.com/GoogleCloudPlatform/golang-samples/pull/3742

bhshkh avatar Dec 27 '23 04:12 bhshkh

Samples at https://github.com/GoogleCloudPlatform/golang-samples/pull/3742

bhshkh avatar Jan 17 '24 10:01 bhshkh

Do not merge until release freeze ends in mid April

bhshkh avatar Mar 29 '24 00:03 bhshkh