Reputation: 85
When i have registered a listener (for firebase) through .streamDataCollection in flutter using a where query (as an example i want to read data from student collection where last_updated_timestamp is grater than 1 pm). at 1.05 pm one recode got updated and as a result listener will return one recode. at 1.10 pm another recode got updated and listener will return two recodes. My question is when second time listener return two recodes is it count as 2 reads or 1 read.
Upvotes: 0
Views: 48
Reputation: 317372
You are billed a read only for each document that was created or changed in the query results delivered to your listener. The other unchanged documents come from a cache in memory and don't cost anything.
Upvotes: 3