I'm using python for trying to add a field to more than 750 documents in a firestore collection, but when trying to do this, only my first 55 documents get updated. I'm assuming this happens because of the firestore write limits but don't really get why.
COLLECTION STRUCTURE
Note: actividades
is an array with a size around of 20 elements and each element has only 3 properties.
CODE
import firebase_admin
from firebase_admin import credentials, firestore
cred = credentials.Certificate('avancesAccountKey.json')
default_app = firebase_admin.initialize_app(cred)
db = firestore.client()
count = 0
avances = db.collection('avances').get()
for e in avances:
db.collection('avances').document(e.id).update({
'vigente': False
})
count += 1
print(count) # count is 55 when trying to update, 757 otherwise
What is exactly happening and how I can solve this?