Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

feat: query profiling part 2: asynchronous#961

Merged
Linchin merged 89 commits intogoogleapis:mainfrom
Linchin:query-profiling-async
Sep 20, 2024
Merged

feat: query profiling part 2: asynchronous#961
Linchin merged 89 commits intogoogleapis:mainfrom
Linchin:query-profiling-async

Conversation

@Linchin
Copy link
Copy Markdown
Contributor

@Linchin Linchin commented Aug 22, 2024

Note: this is a branch of the synchronized PR (#938). Will rebase once #938 is merged.

@Linchin Linchin added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 11, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 11, 2024
async for response in response_iterator:
result = _query_response_to_result(response)
yield result
if result:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I added this so it doesn't yield an empty list when we have explain_options=ExplainOptions(analyze=False). In this case no results are returned but we get a message containing explain metrics info.

@Linchin Linchin marked this pull request as ready for review September 11, 2024 21:22
@Linchin Linchin added owlbot:run Add this label to trigger the Owlbot post processor. labels Sep 12, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 12, 2024
Copy link
Copy Markdown
Contributor

@daniel-sanche daniel-sanche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly looks good, but a few small comments

Comment thread google/cloud/firestore_v1/async_aggregation.py Outdated
Comment thread google/cloud/firestore_v1/async_query.py
Comment thread google/cloud/firestore_v1/async_transaction.py
Comment thread google/cloud/firestore_v1/async_transaction.py
Comment thread google/cloud/firestore_v1/async_vector_query.py Outdated
Comment thread google/cloud/firestore_v1/async_vector_query.py
@Linchin Linchin added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 19, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 19, 2024
Copy link
Copy Markdown
Contributor

@daniel-sanche daniel-sanche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Linchin Linchin merged commit 060a3ef into googleapis:main Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: firestore Issues related to the googleapis/python-firestore API. size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants