Closed daniel-sanche closed 3 months ago
Here is the summary of changes.
This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run
label or use the checkbox below:
LGTM, I just added some nit picks.
Looks like mypy is failing due to a typing error in the gapic generator: https://github.com/googleapis/gapic-generator-python/issues/2044
I'll try to regenerate and pull in the fixes in https://github.com/googleapis/python-datastore/pull/540
Added Query Profiling, support, for retrieving information about a query
Query Profiling is configured through the new ExplainOptions dataclass, which can be attached to a Query or AggregationQuery object at init time.
ExplainOptions has one argument:
analyze
. When analyze is True, it runs the entire query, and returns a set of stats about the execution, and a set of "planning" data detailing the indexes used by the request. Ifanaluze
is False, only the planning data is returned, and the query is not executedFor usage details, see the new samples added as part of this PR