In most cases I am writing as online, but I am reading as offline(from cache):
db.collection('users/user1/messages').get({ source: 'cache' });
Will the above code will cost me? as I am reading only from cache
not server
In most cases I am writing as online, but I am reading as offline(from cache):
db.collection('users/user1/messages').get({ source: 'cache' });
Will the above code will cost me? as I am reading only from cache
not server
Querying using only the cache using source: 'cache'
will never incur any billing. Only document received from the server will cost document reads.