Friday, 1 November 2019

Workaround for Performance Issue in Firestore get API

In the Firestore SDK for iOS, calling any get APIs like getDocument, getDocuments takes a long time. An empirical estimate is for a collection containing around 10,000 documents, it's taking around 20 seconds or more to retrieve the latest 50 documents. The workaround is to use addSnapshotListener once and remove after we obtain the data. This makes the retrieval fast enough.

No comments:

Post a comment