0

I could not find any firestore batch read API where i can pass a set of docIds and i can fetch the docs in one network operation.

I dont want to make multiple network hops for each doc.

Any pointers will be helpful. Am trying to do this for android.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
user93796
  • 18,749
  • 31
  • 94
  • 150
  • If you're using one of the mobile client APIs, you will have to make multiple API calls. The queries are pipelined over a single connection, so there is not that much of a performance hit. – Doug Stevenson Jan 18 '19 at 19:14
  • @DougStevenson Do i need to use a transaction in order to avoid round trips or will it use the same connection even in case if i dont use a transaction? – user93796 Jan 18 '19 at 21:39
  • There is only ever one connection per client app actively running. – Doug Stevenson Jan 18 '19 at 22:46

0 Answers0