firebase / firebase/firebase-js-sdk

Enable persistence for specific collection(s) only

Open
#2,769 4 comments 4 reactions 0 assignees View on GitHub
api: firestore feature request
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### [REQUIRED] Describe your environment

* Operating System version: Mac
* Browser version: Chrome 80.03
* Firebase SDK version: 7.12
* Firebase Product: database

### [REQUIRED] Describe the problem
I would like to request for a feature where user can enable persistence for collection they want.
I have a scenario where I would like to have a minimal cache size and persistence needed for only one collection since other collection data reads might clog space unnecessarily.
#### Steps to reproduce:
Enable persistence, set cache size and read data from multiple collections.

#### Relevant Code:
NA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.