问题
I have worked in a mongodb, which is no sql database and it support document level locks only. As firestore is also no sql database, does it support document level locks or it allows collection level locks?
回答1:
The only operation you have for locking is document locking with transactions. There is no collection locking in Firestore.
来源:https://stackoverflow.com/questions/52861431/does-firestore-support-collection-level-locks-in-transaction