The executeFirestoreParallel
utility facilitates the execution of multiple Firestore operations concurrently. This function is ideal for scenarios where several independent document manipulations need to occur simultaneously, significantly improving performance by parallelizing operations.
executeFirestoreParallel
addresses this challenge by executing operations in parallel, enhancing the efficiency of your Firestore interactions.
FirestoreOperation
objects, each specifying the operation type, target document reference, and necessary data:
executeFirestoreParallel
with the array of operations. Operations are automatically chunked for optimal performance:
executeFirestoreParallel
splits them into smaller groups (chunks) to maintain efficient performance and conform to Firestore’s limitations.