fireorm icon indicating copy to clipboard operation
fireorm copied to clipboard

Support for BulkWriter

Open CodingSoot opened this issue 3 years ago • 2 comments

Hello, Is there any support for BulkWriter ? Thanks.

CodingSoot avatar Oct 07 '21 22:10 CodingSoot

I wasn't aware of this API but you can use batches to do bulk writes/updates.

https://fireorm.js.org/#/Batches

On Fri, Oct 8, 2021 at 12:59 AM ojm-it @.***> wrote:

Hello, Is there any support for BulkWriter https://googleapis.dev/nodejs/firestore/latest/BulkWriter.html ? Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wovalle/fireorm/issues/279, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB35QJB2AW3WIJI3AU6PPU3UFYQ4BANCNFSM5FSK6GKQ .

--

Willy Ovalle

wovalle avatar Oct 08 '21 00:10 wovalle

Bulkwriter is used to perform a large number of writes in parallel. It doesn't have the 500 docs limits, and it doesn't perform operations atomically.

It respects the 500/50/5 rule :

Start with up to 500 operations per second for a new collection, then increase traffic by 50% every five minutes.

CodingSoot avatar Oct 13 '21 13:10 CodingSoot