A
A
ashyr962020-10-19 07:44:15
Android
ashyr96, 2020-10-19 07:44:15

How to get only IDs of documents in Firestore?

How to get only IDs of documents in Firestore without their data for performance and traffic saving.
Because there can be thousands of them, and I won't need their data.
5f8d1995c614b609023869.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew Nodermann, 2020-10-19
@Lucian

Firestore is not about saving traffic and requests, everything is done there suboptimally so that you switch to a paid plan.
In any case, the query will return all id in the collection, if you want to save money, use:
- A crutch to split data into collections / documents +990 + 991 +992, etc But as far as I understand, there will be thousands of records, so the second option is better.
- VPS with mongodb.
digitalocean.com -> create droplets -> marketplace -> search mongodb $5 per month, Robo 3T data display client

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question