-
Imagine I have the following pseudo code :
I listen to this stream somewhere in my code. Let's say this query returns 10 "items" the first time this is called for example. If I modify one of these documents directly in the firestore web interface (or elsewhere), the listener is fired and I have the impression another 10 reads are counted, even though I only modified one document. I checked in the usage tab of my cloud project. If the answer is yes, the next question would be "Imagine I wanted to have two calls to list(), one with orderBy "rating", another with orderBy "time" (random attributes), one of these documents changes, this would mean 20 reads for 1 update"? Either I am missing something or firestore isn't adapted for my use. Is there any way to just retrieve the changed documents? ref => Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
https://stackoverflow.com/questions/63737857/what-is-the-read-count-for-realtime-listening-of-cloud-firestore-query-and-can-i/63738765#63738765