I tried to add a large array of objects in firebase collection but it is taking too much time. The array has around 60 000 rows and I need to provide every single object. To do this I need to loop thru all array elements:
for (let i = 0; i < array.length; i++ {
this.someFunName(array[i])
}
The firebase function is:
someFunName(element) {
return this._firestore
.collection('collName').add(element);
}
For around 5 min only 1500 elements where recorded. Do you have any suggestions how to handle it or some alternative? I know that the array is too large.
Regards