I want to know the read/write operation count for each operation I would perform with Firestore. I know that get() costs as much reads as returned in the result, or set() costs 1 write.
However, there are some gotchas. For example, serverTimestamp() or increment() cost an extra write, or empty result for get() costs 1 read.
As the app grows and count of read/write increases, this becomes hard to track which operation is costing how much. Additionally, this will be really helpful information for optimizing the operations and make sure they stay in the expected limit. So,
- Is there any way I can get to know this on the client-side?
- Does the emulator provide this info as far as the server-side is concerned?
PS: This is developer-specific logging info and will not be shown to users.