Hey there 🙋♂️
I've implemented a rebuild process for all documents when I update a collection schema.
So in my backend, I call the updateSchema endpoint which drops the collection, creates a new one with the schema (I should use aliases but just found out about them) and then retrieves all items from the DB to reindex them with the new schema.
Currently the DB has 32k items but will have millions in production. When I send all 32k using documents().import() , it fails with timeouts. Sending batches of approx 10k to the same call works.
I'm not sure why it makes a difference since the import call already uses batching.
Is there an upper limit to how many documents you can send with import() ?