I have a background service that is updating/removing/adding records in a Firestore collection to keep it in sync with another source of data.
Because performance, I want to do this in batches so I try to follow the official documentation.
But here is my question. When adding, I need to get the ID that Firestore is automatically generating for every add but I can not find a way to retrieve it.
So Is there a way? If there is not, what is the best way to generate me own IDs (ex. No idea if Firestore is using the ID as a hash to distribute the data)?
Regards