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.