I'm struggling to figure out why I am getting significantly more reads than expected on Firestore. This is the function I executed once from my app:
docs = await getDocs(
query(
collection(db, "openTenders"),
where("locationState", "==", queryParams.l.toUpperCase()),
orderBy("closeTimestamp"),
startAfter(lastTender),
limit(20)
)
);
I am limiting it to return 20 documents, but am still getting 325 reads.
I am wondering if Firebase charges a read per document in an index query? If someone has some insight into this, or if I should go back and and diagnose why my app is behaving this way. Thanks!