You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problematic Firebase Component: Database API (Auth, Database, etc.)
Other Firebase Components in use: _____ (Auth, Database, etc.)
Platform you are using the C++ SDK on: Linux (Mac, Windows, or Linux)
Platform you are targeting: desktop (iOS, Android, and/or desktop)
[REQUIRED] Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
At the least, the Firestore C++ Mobile SDK API implementation for DocumentReference.Get() is sub-optimal. Instead a sending a single gRPC request for Firestore.GetDocument, it opens a Firestore.Listen stream to listen for DocumentSnapshots and serves the first snapshot as response to the Get() call.
Arguably, this may even be construed as incorrect behavior if one were to look at the network messages generated by these calls by this implementation.
At minimum, this has latency impact - cost of setting up and tearing down a Listen stream is higher and using it to only read first version of the DocumentSnapshot, the cost is not amortized. A unary gRPC request-response may work better.
Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase C++ quickstarts ?
What's the issue repro rate? (eg 100%, 1/5 etc)
100%. Using the DocumentReference.Get() API.
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
Relevant Code:
// TODO(you): code here to reproduce the problem
The text was updated successfully, but these errors were encountered:
jimit-j-shah
changed the title
Fix Document.Get behavior
Fix Document.Get behavior to send unary gRPC request instead of setting up a Listen stream for Document updates.
Mar 12, 2025
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
At the least, the Firestore C++ Mobile SDK API implementation for DocumentReference.Get() is sub-optimal. Instead a sending a single gRPC request for
Firestore.GetDocument
, it opens aFirestore.Listen
stream to listen for DocumentSnapshots and serves the first snapshot as response to theGet()
call.Arguably, this may even be construed as incorrect behavior if one were to look at the network messages generated by these calls by this implementation.
At minimum, this has latency impact - cost of setting up and tearing down a
Listen
stream is higher and using it to only read first version of the DocumentSnapshot, the cost is not amortized. A unary gRPC request-response may work better.Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase C++ quickstarts ?
What's the issue repro rate? (eg 100%, 1/5 etc)
100%. Using the DocumentReference.Get() API.
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
Relevant Code:
The text was updated successfully, but these errors were encountered: