nodejs-firestore icon indicating copy to clipboard operation
nodejs-firestore copied to clipboard

Not taking care of "Maximum number of field transformations" in BulkWriter

Open yaquawa opened this issue 3 years ago • 6 comments

Hi there

According to the doc https://firebase.google.com/docs/firestore/quotas#writes_and_transactions

Maximum number of field transformations that can be performed on a single document in a Commit operation or in a transaction : 500

I couldn't find any code handling this limit in the BulkWriter. Is this a bug or intended?

yaquawa avatar May 13 '22 12:05 yaquawa

I'm not sure I fully understand your question. What is the "bug" you are referring to? Perhaps you could pose your question with "steps to reproduce", the "expected results" and "actual results". Thank you.

dconeybe avatar May 17 '22 20:05 dconeybe

Hi @dconeybe will this help? https://stackoverflow.com/questions/70764076/what-is-field-transformations-in-firestore

yaquawa avatar May 18 '22 05:05 yaquawa

I see. So, are you asking for details about what constitutes a "transformation"? Or are you asking for BulkWriter to be modified to enforce this limit?

dconeybe avatar May 18 '22 16:05 dconeybe

Thanks @dconeybe , I'm asking for BulkWriter to be modified to enforce this limit.

yaquawa avatar May 19 '22 03:05 yaquawa

Ok thank you for the clarification. This is likely something that we could add in the future. Unfortunately, we don't have the bandwidth to work on it any time soon. I've added this issue to our product backlog and we will update this issue if/when we have an update. Thank you for taking the time to make this suggestion. It is a good one.

dconeybe avatar May 19 '22 14:05 dconeybe

Thanks @dconeybe 🥳🥳🥳

yaquawa avatar May 19 '22 21:05 yaquawa