You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to make certain queries explicitly with no persistence. Given large cached collections in persistence can impact performance, there are some larger documents that I'd like to query when needed but never persist.
How the Firebase SDK currently handles it
Persistence settings are set globally at Firestore initialization, there is currently no API to enable certain queries to sidestep cache.
How you propose the Firebase SDK should handle it
Either: allow the creation of alternate Firestore instances, with different persistence settings, or, allow queries to provide a disableCaching option, that skips persistence.
API Proposal
No response
Firebase Product(s)
Firestore
The text was updated successfully, but these errors were encountered:
I reviewed this with the team and this is something we have been considering, so your request helps us prioritize it. For now, the only additional workaround I have is to get the documents you do not want to cache within a transaction. You will not be able to run a query within a transaction, but you can get individual documents by ID.
@johnfrancmartin, no, I don't have a timeline for this feature yet. We're you able to implement a workaround with a second FirebaseApp instance or using transactions?
Description
Use Case
I'd like to be able to make certain queries explicitly with no persistence. Given large cached collections in persistence can impact performance, there are some larger documents that I'd like to query when needed but never persist.
How the Firebase SDK currently handles it
Persistence settings are set globally at Firestore initialization, there is currently no API to enable certain queries to sidestep cache.
How you propose the Firebase SDK should handle it
Either: allow the creation of alternate Firestore instances, with different persistence settings, or, allow queries to provide a
disableCaching
option, that skips persistence.API Proposal
No response
Firebase Product(s)
Firestore
The text was updated successfully, but these errors were encountered: