Regular User
Regular User

Reputation: 695

Is there a limit or max to the number of security rules in Firestore?

I need an application to support many users (>100,000). Each of those users will have access to a number of folders or paths. Each folder will need to be accessed by a number of users. (It is a many-to-many relationship.)

If I need to have 500,000+ security rules, will I run into a limit?

Thanks!

Upvotes: 0

Views: 206

Answers (1)

Rodrigo Mata
Rodrigo Mata

Reputation: 1859

There is a section under Firestore rules documentation which you can take a look, the recommendations you basically need to look at are:

Maximum number of expressions in a ruleset 10,000

Maximum size of a ruleset 64 KB

Upvotes: 1

Related Questions