Thanks to visit codestin.com
Credit goes to github.com

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

feat: Logical termination for firestore.getAll(...).#1517

Merged
ehsannas merged 4 commits into
mainfrom
ehsann/fix-logical-termination
Jan 10, 2024
Merged

feat: Logical termination for firestore.getAll(...).#1517
ehsannas merged 4 commits into
mainfrom
ehsann/fix-logical-termination

Conversation

@ehsannas

@ehsannas ehsannas commented Jan 5, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: firestore Issues related to the googleapis/java-firestore API. labels Jan 5, 2024
@ehsannas ehsannas requested a review from cherylEnkidu January 5, 2024 01:04
@ehsannas ehsannas marked this pull request as ready for review January 5, 2024 01:07
@ehsannas ehsannas requested a review from a team January 5, 2024 01:07
@ehsannas

ehsannas commented Jan 5, 2024

Copy link
Copy Markdown
Contributor Author

This improves the performance for 2 cases:

(1)

firestore.getAll(docRef1, docRef2, docRef3).get()

we know we expect 3 responses, so we can return the result after we receive 3 docs.

(2)

docRef.get().get()

This simply calls firestore.getAll(docRef) under the hood. We know we expect 1 document result, so we can return the result as soon as we receive 1 document

(b/309863147)

@cherylEnkidu cherylEnkidu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi Ehsan, I change the unit tests to verify the changes. Please only merge the PR If my changes look good to you,

@cherylEnkidu cherylEnkidu added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 5, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 5, 2024
@cherylEnkidu cherylEnkidu added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 6, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 6, 2024
@cherylEnkidu cherylEnkidu assigned ehsannas and unassigned cherylEnkidu Jan 8, 2024
@cherylEnkidu

Copy link
Copy Markdown
Contributor

Hi @ehsannas , please verify my latest fix before merging the PR. Thank you!

@ehsannas ehsannas merged commit c6448fc into main Jan 10, 2024
@ehsannas ehsannas deleted the ehsann/fix-logical-termination branch January 10, 2024 23:01
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/java-firestore API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants