Imagine you execute a Firestore transaction on the client in which you create three documents: a, b, and c.
In the security rules, you do the following for:
So my question is whether this will result in 6 reads counting towards the limit or whether Firestore caches all reads and will only perform three (or even zero?) reads.
Thanks for your help!
When a document is read during the evaluation of a rule, reading the same document second time during the evaluation of that same rule will use the previously read data. It will not incur an additional read.