Firestore has a limit of 500 writes per second to
"a collection in which documents contain sequential values in an indexed field"
https://cloud.google.com/firestore/quotas#writes_and_transactions
What scenarios can I increase the limit to 10,000 writes per second in ONE collection?
Assuming I use Best Practices of keeping Document IDs distributed relatively evenly throughout the key range.
A) What if the documents do not contain any sequential values?
E.g. the only fields I have in each document is below.
- Field A: random string
- Field B: random string
B) What if the document contains a sequential field, but I don't query by that field ever?
- Field A: random string
- Field B (Sequential): date
C) What if the document contains a sequential field, but I turn off indexing to the date in Field B?
- Field A: random string
- Field B (Sequential): date (automatic indexing turned off)
C) Part 2 - If I turn off indexing to that date field (and this removes the 500 per second limitation), what happens if I randomly add a Field C to a SINGLE document in the collection? Does having this one document with a Field C ruin the 10,000 per second write limitation to the collection? Because now Firestore has to worry about automatic indexing of any new Field C?
(and then does this happen every single time you add a random field to any document in this collection, and therefore have to turn off indexing to every possible field in the collection to remove the 500ps limitation?)