Quotas and Limits

This page identifies the request quotas and limits for Cloud Firestore.

Beta limits

The following table shows Cloud Firestore limits that apply only during the beta period.

Limit Details
Maximum writes per second per database (at beta) 2,500 (up to 2.5 MiB per second)
Maximum concurrent connections for mobile/web clients per database (at beta) 100,000

Free quota

Cloud Firestore offers free quota that allows you to get started at no cost. The free quota amounts are listed below. If you need more quota, you must enable billing for your Cloud Platform project.

Quotas are applied daily and reset around midnight Pacific time.

Free tier Quota
Stored data 1 GiB
Document reads 50,000 per day
Document writes 20,000 per day
Document deletes 20,000 per day
Network egress 10 GiB per month

Standard limits

In addition to the beta limits listed above, the following table shows the limits that apply to your usage of Cloud Firestore.

Limit Details
Maximum API request size 10 MiB
Maximum size for a transaction 10 MiB
Time limit for a transaction 270 seconds, with a 60-second idle expiration time
Maximum size for a document 1 MiB (1,048,576 bytes)
Maximum size for a document name 6 KiB
Maximum depth of subcollections 100
Maximum depth of fields in a map 20
Maximum write rate to a document 1 per second
Maximum write rate to a collection in which documents contain sequential values in an indexed field 500 per second
Maximum number of documents that can be passed to a Commit operation 500
Maximum size of a field's name 1,500 bytes
Maximum size of a field's value 1 MiB - 89 bytes (1,048,487 bytes)
Maximum size of a field path 1,500 bytes
Maximum sum of the sizes of a document's composite index entries 2 MiB
Maximum number of composite indexes for a database 200

Maximum sum of the following for a document:

  • The number of single-field index entries
  • The number of composite index entries
20,000
Constraints on document IDs
  • Must be valid UTF-8 characters
  • Must be no longer than 1500 bytes
  • Cannot contain a forward slash (/)
  • Cannot contain a single period (.) or double periods (..)
  • Cannot match the regular expression __.*__
Constraints on collection IDs
  • Must be valid UTF-8 characters
  • Must be no longer than 1500 bytes
  • Cannot contain a forward slash (/)
  • Cannot contain a single period (.) or double periods (..)
  • Cannot match the regular expression __.*__
Constraints on field names Must be valid UTF-8 characters
Constraints on field paths
  • Must separate field names with a single period (.)
  • Must enclose each field name in backticks unless the field name meets the following requirements:
    • The field name contains only the characters a-z, A-Z, 0-9, and underscores (_)
    • The field name does not start with an underscore (_)
    • The field name does not contain only digits

Send feedback about...

Need help? Visit our support page.