Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: query profiling part 2: asynchronous #961

Merged
merged 89 commits into from
Sep 20, 2024

Conversation

Linchin
Copy link
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
@@ -124,14 +153,21 @@ async def _make_stream(

async for response in response_iterator:
result = _query_response_to_result(response)
yield result
if result:
Copy link
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
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

google/cloud/firestore_v1/async_aggregation.py Outdated Show resolved Hide resolved
google/cloud/firestore_v1/async_query.py Show resolved Hide resolved
google/cloud/firestore_v1/async_vector_query.py Outdated Show resolved Hide resolved
@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
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
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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