Firestore DB In Native Mode Document Write Limit
Firestore database in Native mode has a limit of 1 "write" per document per second (https://firebase.google.com/docs/firestore/quotas#writes_and_transactions).
Does a document delete
count as a write
operation? i.e. if within a second we created a new document & then deleted it would we run into issues due to this limit?
In the billing documentation it talks about reads
, writes
& deletes
making it sound as though a write
and delete
are separate types of operations (https://firebase.google.com/docs/firestore/pricing#operations).
Answer
Deletes do count as writes. The write limit is about sustained load -- if you have a small burst of > 1/sec it's fine, but sustained > 1/sec will cause problems.
Quoted from a Google Firebase developer on Twitter: https://twitter.com/mbleigh/status/1158411267284934657
I have carried out a load test of 10,000 document creates followed by deletes in series over 400s (avg. 40ms per create -> delete) and noticed no impact (no errors or extra latency).
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → I can't do a foreign key, constraint error
- → Setting a default value on settings form return null in Octobercms
- → Eloquent Multitable query
- → "Laravel 5.1" add user and project with userId
- → Image does not go in database with file name only tmp name saved?
- → Database backup with custom code in laravel 5 and get the data upto 10 rows from per table in database
- → Trait 'IlluminateFoundationBusDispatchesJobs' not found
- → Setting the maxlength of text in an element that is displayed
- → laravel check between 2 integer from database
- → how to retrieve image from database in laravel 5.1?
- → relationship for database Column type object
- → Carousel in Laravel 4 does not show as expected