Firestore in Datastore mode pricing
This document explains Datastore mode pricing details.
Free usage
Firestore in Datastore mode offers free usage that allows you to get started at no cost. To exceed the free usage, you must enable billing for your project.
Your usage is counted daily and resets around midnight Pacific time.
Free usage | |
---|---|
Entity reads | 50,000 per day |
Entity writes | 20,000 per day |
Entity deletes | 20,000 per day |
Stored data | 1 GiB |
Small operations | 50,000 per day |
Outbound data transfer | 10 GiB per month |
The following operations and features do not include free usage. You must enable billing to use these features:
- PITR data
- Backup data
- Restore operations
- TTL
For more information about how these features are billed, see Storage size consideration.
Multi-region location pricing
United States nam5
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.06 per 100,000 entities |
Entity writes | $0.18 per 100,000 entities |
Entity/TTL deletes | $0.02 per 100,000 entities |
Stored data | $0.18/GiB/month |
PITR data | $0.18/GiB/month |
Backup data | $0.03/GiB/month |
Restore operation | $0.4/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Europe eur3
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.06 per 100,000 entities |
Entity writes | $0.18 per 100,000 entities |
Entity/TTL deletes | $0.02 per 100,000 entities |
Stored data | $0.18/GiB/month |
PITR data | $0.18/GiB/month |
Backup data | $0.03/GiB/month |
Restore operation | $0.4/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Regional location pricing
North America
Oregon us-west1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.03 per 100,000 entities |
Entity writes | $0.09 per 100,000 entities |
Entity/TTL deletes | $0.01 per 100,000 entities |
Stored data | $0.15/GiB/month |
PITR data | $0.15/GiB/month |
Backup data | $0.03/GiB/month |
Restore operation | $0.2/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Los Angeles us-west2
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.036 per 100,000 entities |
Entity writes | $0.108 per 100,000 entities |
Entity/TTL deletes | $0.012 per 100,000 entities |
Stored data | $0.108/GiB/month |
PITR data | $0.108/GiB/month |
Backup data | $0.036/GiB/month |
Restore operation | $0.24/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Salt Lake City us-west3
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.036 per 100,000 entities |
Entity writes | $0.108 per 100,000 entities |
Entity/TTL deletes | $0.012 per 100,000 entities |
Stored data | $0.18/GiB/month |
PITR data | $0.18/GiB/month |
Backup data | $0.036/GiB/month |
Restore operation | $0.24/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Las Vegas us-west4
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.033 per 100,000 entities |
Entity writes | $0.099 per 100,000 entities |
Entity/TTL deletes | $0.011 per 100,000 entities |
Stored data | $0.165/GiB/month |
PITR data | $0.165/GiB/month |
Backup data | $0.033/GiB/month |
Restore operation | $0.22/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Iowa us-central1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.030 per 100,000 entities |
Entity writes | $0.090 per 100,000 entities |
Entity/TTL deletes | $0.010 per 100,000 entities |
Stored data | $0.150/GiB/month |
PITR data | $0.150/GiB/month |
Backup data | $0.030/GiB/month |
Restore operation | $0.200/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Montréal northamerica-northeast1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.033 per 100,000 entities |
Entity writes | $0.099 per 100,000 entities |
Entity/TTL deletes | $0.011 per 100,000 entities |
Stored data | $0.099/GiB/month |
PITR data | $0.099/GiB/month |
Backup data | $0.033/GiB/month |
Restore operation | $0.22/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Toronto northamerica-northeast2
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.033 per 100,000 entities |
Entity writes | $0.099 per 100,000 entities |
Entity/TTL deletes | $0.011 per 100,000 entities |
Stored data | $0.165/GiB/month |
PITR data | $0.165/GiB/month |
Backup data | $0.033/GiB/month |
Restore operation | $0.22/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
South Carolina us-east1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.06 per 100,000 entities |
Entity writes | $0.18 per 100,000 entities |
Entity/TTL deletes | $0.02 per 100,000 entities |
Stored data | $0.18/GiB/month |
PITR data | $0.18/GiB/month |
Backup data | $0.03/GiB/month |
Restore operation | $0.4/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Northern Virginia us-east4
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.033 per 100,000 entities |
Entity writes | $0.099 per 100,000 entities |
Entity/TTL deletes | $0.011 per 100,000 entities |
Stored data | $0.099/GiB/month |
PITR data | $0.099/GiB/month |
Backup data | $0.033/GiB/month |
Restore operation | $0.22/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Columbus us-east5
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.030 per 100,000 entities |
Entity writes | $0.090 per 100,000 entities |
Entity/TTL deletes | $0.010 per 100,000 entities |
Stored data | $0.150/GiB/month |
PITR data | $0.150/GiB/month |
Backup data | $0.030/GiB/month |
Restore operation | $0.200/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Dallas us-south1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.035 per 100,000 entities |
Entity writes | $0.106 per 100,000 entities |
Entity/TTL deletes | $0.012 per 100,000 entities |
Stored data | $0.177/GiB/month |
PITR data | $0.177/GiB/month |
Backup data | $0.035/GiB/month |
Restore operation | $0.236/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
South America
Santiago southamerica-west1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.043 per 100,000 entities |
Entity writes | $0.129 per 100,000 entities |
Entity/TTL deletes | $0.014 per 100,000 entities |
Stored data | $0.215/GiB/month |
PITR data | $0.215/GiB/month |
Backup data | $0.043/GiB/month |
Restore operation | $0.286/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
São Paulo southamerica-east1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.045 per 100,000 entities |
Entity writes | $0.135 per 100,000 entities |
Entity/TTL deletes | $0.015 per 100,000 entities |
Stored data | $0.135/GiB/month |
PITR data | $0.135/GiB/month |
Backup data | $0.045/GiB/month |
Restore operation | $0.3/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Europe
Belgium europe-west1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.033 per 100,000 entities |
Entity writes | $0.099 per 100,000 entities |
Entity/TTL deletes | $0.011 per 100,000 entities |
Stored data | $0.165/GiB/month |
PITR data | $0.165/GiB/month |
Backup data | $0.033/GiB/month |
Restore operation | $0.220/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
London europe-west2
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.039 per 100,000 entities |
Entity writes | $0.117 per 100,000 entities |
Entity/TTL deletes | $0.013 per 100,000 entities |
Stored data | $0.117/GiB/month |
PITR data | $0.117/GiB/month |
Backup data | $0.039/GiB/month |
Restore operation | $0.26/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Frankfurt europe-west3
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.039 per 100,000 entities |
Entity writes | $0.117 per 100,000 entities |
Entity/TTL deletes | $0.013 per 100,000 entities |
Stored data | $0.117/GiB/month |
PITR data | $0.117/GiB/month |
Backup data | $0.039/GiB/month |
Restore operation | $0.26/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Finland europe-north1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.033 per 100,000 entities |
Entity writes | $0.099 per 100,000 entities |
Entity/TTL deletes | $0.011 per 100,000 entities |
Stored data | $0.165/GiB/month |
PITR data | $0.165/GiB/month |
Backup data | $0.033/GiB/month |
Restore operation | $0.220/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Milan europe-west8
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.035 per 100,000 entities |
Entity writes | $0.104 per 100,000 entities |
Entity/TTL deletes | $0.012 per 100,000 entities |
Stored data | $0.174/GiB/month |
PITR data | $0.174/GiB/month |
Backup data | $0.035/GiB/month |
Restore operation | $0.232/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Netherlands europe-west4
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.034 per 100,000 entities |
Entity writes | $0.102 per 100,000 entities |
Entity/TTL deletes | $0.011 per 100,000 entities |
Stored data | $0.170/GiB/month |
PITR data | $0.170/GiB/month |
Backup data | $0.035/GiB/month |
Restore operation | $0.23/GiB |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Zürich europe-west6
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.042 per 100,000 entities |
Entity writes | $0.126 per 100,000 entities |
Entity/TTL deletes | $0.014 per 100,000 entities |
Stored data | $0.210/GiB/month |
PITR data | $0.210/GiB/month |
Backup data | $0.042/GiB/month |
Restore operation | $0.28/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Madrid europe-southwest1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.035 per 100,000 entities |
Entity writes | $0.106 per 100,000 entities |
Entity/TTL deletes | $0.012 per 100,000 entities |
Stored data | $0.177/GiB/month |
PITR data | $0.177/GiB/month |
Backup data | $0.035/GiB/month |
Restore operation | $0.236/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Paris europe-west9
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.036 per 100,000 entities |
Entity writes | $0.107 per 100,000 entities |
Entity/TTL deletes | $0.012 per 100,000 entities |
Stored data | $0.179/GiB/month |
PITR data | $0.179/GiB/month |
Backup data | $0.036/GiB/month |
Restore operation | $0.238/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Turin europe-west12
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.039 per 100,000 entities |
Entity writes | $0.116 per 100,000 entities |
Entity/TTL deletes | $0.013 per 100,000 entities |
Stored data | $0.194/GiB/month |
PITR data | $0.194/GiB/month |
Backup data | $0.039/GiB/month |
Restore operation | $0.258/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Berlin europe-west10
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.046 per 100,000 entities |
Entity writes | $0.139 per 100,000 entities |
Entity/TTL deletes | $0.015 per 100,000 entities |
Stored data | $0.231/GiB/month |
PITR data | $0.231/GiB/month |
Backup data | $0.046/GiB/month |
Restore operation | $0.308/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Warsaw europe-central2
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.039 per 100,000 entities |
Entity writes | $0.117 per 100,000 entities |
Entity/TTL deletes | $0.013 per 100,000 entities |
Stored data | $0.195/GiB/month |
PITR data | $0.195/GiB/month |
Backup data | $0.039/GiB/month |
Restore operation | $0.26/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Middle East
Doha me-central1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.036 per 100,000 entities |
Entity writes | $0.109 per 100,000 entities |
Entity/TTL deletes | $0.012 per 100,000 entities |
Stored data | $0.182/GiB/month |
PITR data | $0.182/GiB/month |
Backup data | $0.036/GiB/month |
Restore operation | $0.243/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Dammam me-central2
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.048 per 100,000 entities |
Entity writes | $0.144 per 100,000 entities |
Entity/TTL deletes | $0.016 per 100,000 entities |
Stored data | $0.240/GiB/month |
PITR data | $0.240/GiB/month |
Backup data | $0.048/GiB/month |
Restore operation | $0.320/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Tel Aviv me-west1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.034 per 100,000 entities |
Entity writes | $0.102 per 100,000 entities |
Entity/TTL deletes | $0.011 per 100,000 entities |
Stored data | $0.170/GiB/month |
PITR data | $0.170/GiB/month |
Backup data | $0.034/GiB/month |
Restore operation | $0.226/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Asia
Mumbai asia-south1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.035 per 100,000 entities |
Entity writes | $0.104 per 100,000 entities |
Entity/TTL deletes | $0.012 per 100,000 entities |
Stored data | $0.104/GiB/month |
PITR data | $0.104/GiB/month |
Backup data | $0.035/GiB/month |
Restore operation | $0.23/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Delhi asia-south2
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.035 per 100,000 entities |
Entity writes | $0.104 per 100,000 entities |
Entity/TTL deletes | $0.012 per 100,000 entities |
Stored data | $0.173/GiB/month |
PITR data | $0.173/GiB/month |
Backup data | $0.035/GiB/month |
Restore operation | $0.23/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Singapore asia-southeast1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.0369 per 100,000 entities |
Entity writes | $0.1107 per 100,000 entities |
Entity/TTL deletes | $0.0123 per 100,000 entities |
Stored data | $0.1846/GiB/month |
PITR data | $0.1846/GiB/month |
Backup data | $0.037/GiB/month |
Restore operation | $0.246/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Jakarta asia-southeast2
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.038 per 100,000 entities |
Entity writes | $0.115 per 100,000 entities |
Entity/TTL deletes | $0.013 per 100,000 entities |
Stored data | $0.192/GiB/month |
PITR data | $0.192/GiB/month |
Backup data | $0.038/GiB/month |
Restore operation | $0.256/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Hong Kong asia-east2
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.06 per 100,000 entities |
Entity writes | $0.18 per 100,000 entities |
Entity/TTL deletes | $0.02 per 100,000 entities |
Stored data | $0.18/GiB/month |
PITR data | $0.18/GiB/month |
Backup data | $0.035/GiB/month |
Restore operation | $0.23/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Taiwan asia-east1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.0345 per 100,000 entities |
Entity writes | $0.1042 per 100,000 entities |
Entity/TTL deletes | $0.0115 per 100,000 entities |
Stored data | $0.1725/GiB/month |
PITR data | $0.1725/GiB/month |
Backup data | $0.035/GiB/month |
Restore operation | $0.23/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Tokyo asia-northeast1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.038 per 100,000 entities |
Entity writes | $0.115 per 100,000 entities |
Entity/TTL deletes | $0.013 per 100,000 entities |
Stored data | $0.115/GiB/month |
PITR data | $0.115/GiB/month |
Backup data | $0.038/GiB/month |
Restore operation | $0.256/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Osaka asia-northeast2
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.038 per 100,000 entities |
Entity writes | $0.115 per 100,000 entities |
Entity/TTL deletes | $0.013 per 100,000 entities |
Stored data | $0.195/GiB/month |
PITR data | $0.195/GiB/month |
Backup data | $0.038/GiB/month |
Restore operation | $0.256/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Seoul asia-northeast3
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.038 per 100,000 entities |
Entity writes | $0.115 per 100,000 entities |
Entity/TTL deletes | $0.013 per 100,000 entities |
Stored data | $0.192/GiB/month |
PITR data | $0.192/GiB/month |
Backup data | $0.038/GiB/month |
Restore operation | $0.256/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Australia
Sydney australia-southeast1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.038 per 100,000 entities |
Entity writes | $0.115 per 100,000 entities |
Entity/TTL deletes | $0.013 per 100,000 entities |
Stored data | $0.115/GiB/month |
PITR data | $0.115/GiB/month |
Backup data | $0.038/GiB/month |
Restore operation | $0.256/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Melbourne australia-southeast2
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.034 per 100,000 entities |
Entity writes | $0.103 per 100,000 entities |
Entity/TTL deletes | $0.011 per 100,000 entities |
Stored data | $0.171/GiB/month |
PITR data | $0.171/GiB/month |
Backup data | $0.034/GiB/month |
Restore operation | $0.228/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Africa
Johannesburg africa-south1
Pricing beyond the free usage limits | |
---|---|
Entity reads | $0.031 per 100,000 entities |
Entity writes | $0.094 per 100,000 entities |
Entity/TTL deletes | $0.010 per 100,000 entities |
Stored data | $0.156/GiB/month |
PITR data | $0.156/GiB/month |
Backup data | $0.031/GiB/month |
Restore operation | $0.208/GiB |
Small operations | Free |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Read operations
You are charged one read operation for each entity read and one read operation for each batch of up to 1000 index entries read.
Index entries
You are charged one read operation for each batch of up to 1000 index entries read by a query except in the following:
Queries that have up to one range property are not charged for index entries
read and have a minimum charge of zero read operations. Use the following examples
to familiarize yourself with when index entries read is charged. Then use the
billing_details
section of Query Explain to validate your understanding.
The following query contains one equality property (age
) and one
range property (start_date
) and is not charged for index entries read:
Query<Entity> query =
Query.newEntityQueryBuilder()
.setKind("Employee")
.setFilter(
CompositeFilter.and(
PropertyFilter.eq("age", 35), PropertyFilter.ge("start_date", new Date(2020, 1, 1))))
.build();
The following query contains two range properties (age
and start_date
) and
is charged for index entries reads:
Query<Entity> query =
Query.newEntityQueryBuilder()
.setKind("Employee")
.setFilter(
CompositeFilter.and(
PropertyFilter.ge("age", 35), PropertyFilter.ge("start_date", new Date(2020, 1, 1))))
.build();
A property that appears in the order by clause is considered a range property
when there is at least one other range property.
Therefore the following query contains two range properties
(age
and start_date
) and is charged for index entries reads:
Query<Entity> query =
Query.newEntityQueryBuilder()
.setKind("Employee")
.setFilter(PropertyFilter.ge("age", 35))
.setOrderBy(OrderBy.asc("start_date")).build()
.build();
A property that appears in the distinct on clause is considered a range property
when there is at least one other range property. Therefore the following
query contains two range properties (age
and start_date
) and is charged for
index entries reads:
Query<Entity> query =
Query.newEntityQueryBuilder()
.setKind("Employee")
.setFilter(PropertyFilter.ge("age", 35))
.setDistinctOn("start_date")
.build();
Aggregation queries
For the aggregation queries count()
,
sum()
, and avg()
, you are charged one entity read for each batch of up to
1000 index entries read by the query.
For example, aggregation queries that read between 0 and 1000 index entries are billed for one entity read. For an aggregation query that reads 1500 index entries, you are billed 2 entity reads.
To learn more about the indexes used and the index entries read, use Query Explain.
Property transforms
Each property transform
operation like increment
and appendMissingElements
is charged for a read
and a write. A commit operation with an insert, update, or upsert and
a property transform on the same entity counts as one read and one write.
Small operations
Small operations include:
- Calls to allocate IDs.
- Keys-only queries. A keys-only query is counted as a single entity read for the query itself. The individual results are counted as small operations.
- Projection queries that do not use the
distinct on
clause. This type of query is counted as a single entity read for the query itself. The individual results are counted as small operations.
Small operations are free, but you must enable billing to exceed the free usage per day.
Query Explain and Analyze
Use of the Query Explain and Analyze incurs costs.
When a query is explained with the default option, no index or entity read operations are performed. Regardless of query complexity, one read operation is charged.
When a query is explained with the analyze option, index and read operations are performed, so you are charged for the query as usual. There is no additional charge for the explain and analyze activity, only the usual charge for the query being executed.
Network bandwidth
You are charged for the network bandwidth used by your Firestore in Datastore mode requests, as shown in the following sections. The network bandwidth cost of a request depends on the request's response size, the location of your Datastore mode database, and the destination of the response.
General network pricing
For requests that originate within Google Cloud Platform (for example, from an application running on Google Compute Engine), you are charged as follows:
Traffic type | Price |
---|---|
Inbound data transfer | Free |
Data transfer within a region | Free |
Data transfer between regions in the same multi-region | Free |
Data transfer between regions within the US (per GiB) | $0.01 (first 10 GiB per month are free) |
Data transfer between regions, not including traffic between US regions | Google Cloud Platform internet outbound data transfer rates |
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Internet data transfer rates
You will be charged for internet data transfer for the following:
- Google Cloud requests between regions, not including traffic between US regions
- Requests from outside of Google Cloud
If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
Export and import operations
Export and import operations are charged for entity reads and writes at the rates shown in the table above. If you cancel an export or import, you will be charged for operations performed up until the time that the cancel request has propagated through Firestore in Datastore mode.
Locating quota usage information for your app
To see your application's Datastore mode usage, including quota consumption, visit the App Engine Quota Details page. You'll need to do this even if your application does not run in App Engine.
The Datastore mode resources used by your application are listed in the Storage page that is displayed. You can optionally click Show resources not in use to take a look at the complete list of quota information that is available.
Storage size consideration
You are charged for the amount of data that you store in Datastore mode, including storage overhead. The amount of overhead includes metadata, built-in indexes, composite indexes, and point-in-time recovery (PITR) versions. You are also charged for backup storage size and for restore operations.
Each entity stored in your database requires the following metadata which contribute to storage size:
- The entity key, including the kind, the ID or key name, and the keys of the entity's ancestors.
- The name and value of each property. Since Firestore in Datastore mode is schemaless, the name of each property must be stored with the property value for any given entity.
- Any built-in and composite index rows that refer to this entity. Each row contains the entity kind, any number of property values depending on the index definition, and the entity key.
Learn how Datastore mode storage is calculated at Storage Size Calculations.
PITR data
If you enable PITR, you are charged for the storage of PITR data. Most customers will find that the overall cost of PiTR data storage is similar to the storage cost of the database.
Storage costs for PITR are in GiB/month and calculated daily. Datastore mode measures the database size daily. Over the period of a month, these sample points are averaged to calculate the database storage size. This average value is multiplied by the unit price of PITR (GiB-month).
For example, if the average size of your database during a month is 1 GiB and PITR is enabled for the whole month, then the billable PITR data size is 1 GiB as well.
Minimum billing: You may be charged up to 1 day of PITR storage cost even if you disable PITR within a day after enablement.
Backup data and restore operations
If you enable backups, you are charged for the storage of your database backups. The storage size for a backup is equal to the storage size of the database when the backup was taken.
Storage costs for backups are in GiB/month. Over the period of a month, the number of days for which each backup is retained, averaged over the month is also calculated. The cost of each backup is calculated using the storage size of the backup multiplied by the proportion of the month the backup is retained, multiplied by the unit price. Day boundaries are defined by the America/Los_Angeles time zone for billing purposes.
When you perform a restore operation, Datastore mode measures the size of the backup for the restore operation. The size of the backup is multiplied by the unit price of restore operations (GiB).
What's next
- Read the Firestore in Datastore mode documentation.
- Get started with Firestore in Datastore mode.
- Try the Pricing calculator.
- Learn about Firestore in Datastore mode solutions and use cases.