[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-19。"],[[["\u003cp\u003eYou must choose a location for your project's data before using Firestore in Datastore mode, and this selection cannot be changed later.\u003c/p\u003e\n"],["\u003cp\u003eData can be stored in either a multi-region location for maximum availability and durability, or a regional location for lower write latency and co-location with other Google Cloud resources.\u003c/p\u003e\n"],["\u003cp\u003eMulti-region locations replicate data across multiple regions and zones to withstand the loss of an entire region, while regional locations replicate data across multiple zones within a single region.\u003c/p\u003e\n"],["\u003cp\u003eThe location selected for your project applies to both Firestore in Datastore mode and App Engine, and will be prompted when creating an App Engine application or your first Datastore mode entity.\u003c/p\u003e\n"],["\u003cp\u003eYou can find the chosen project location by using the \u003ccode\u003egcloud app describe\u003c/code\u003e command, or through the location information in the upper right hand corner of the App Engine Dashboard if it is active.\u003c/p\u003e\n"]]],[],null,["# Firestore in Datastore mode Locations\n\nBefore you use Firestore in Datastore mode, you must choose a *location* where\nthe project's data is stored. To reduce latency and increase availability, store\nyour data close to the users and services that need it.\n| **Warning:** Once you select a location for your project, you cannot change it. [Your project's location setting applies to more than one product.](#selecting_a_location)\n\nTypes of locations\n------------------\n\nYou can store your Datastore mode data in either a *multi-region*\nlocation or a *regional* location.\n\nData in a multi-region location operates in a [multi-zone and multi-region\nreplicated configuration](/docs/geography-and-regions#multi-regional_resources). Select a multi-region location if you want\nto maximize the availability and durability of your database. Multi-region\nlocations can withstand the loss of an entire region and maintain availability\nwithout data loss. In the [Datastore Service Level Agreement](/datastore/sla),\nmulti-region locations define a higher monthly uptime percentage than regional\nlocations.\n\nData in a regional location operates in a [multi-zone replicated\nconfiguration](/docs/geography-and-regions#regional_resources). Select a regional location if your application is\nmore sensitive to write latency or if you want [co-location with other\nGoogle Cloud resources](/about/locations#products-available-by-region) that your application may use.\n\n### Multi-region locations\n\nA multi-region location consists of a defined set of\n[regions](/docs/geography-and-regions#regions_and_zones) where multiple replicas of the database\nare stored. Each replica is either a read-write replica which contains all of the\ndata in the database or a witness replica which does not maintain a full set of\ndata but participates in replication.\n\nBy replicating the data between multiple regions, data\ncan continue to be served even with the loss of an entire\nregion. Within a region, data is replicated across\n[zones](/docs/geography-and-regions#regions_and_zones) so that data can continue to be served\nwithin that region even with the loss of a zone.\n\nThe following multi-region locations are available:\n\n| **Note:** For Legacy Cloud Datastore databases not yet upgraded to Firestore in Datastore mode, see [Multi-region locations (Legacy Cloud Datastore)](/datastore/docs/pre-migration/multi-r).\n\n### Regional location\n\nA regional location is a specific geographic place, such as South Carolina. The\nfollowing regional locations are available:\n\nSelecting a location\n--------------------\n\nThe location setting for your Google Cloud project applies to both\nFirestore in Datastore mode and App Engine. When you select a location in either\nproduct, you set the location for your entire Google Cloud project.\n| **Important:** After you select the location of your project, you cannot change it.\n\nIf you have not yet selected a location for your project, you will be asked to\nselect the location when you complete any of the following tasks:\n\n- Creating a new App Engine application.\n- [Creating your first Datastore mode entity using the\n Google Cloud console](/datastore/docs/store-query-data).\n\n### Viewing the location of your project\n\nUse one of the following methods to find out which location you selected for\nyour project:\n\n- Run the `gcloud app describe` command.\n\n- If you have at least one version of an App Engine app deployed, open the\n [App Engine Dashboard](https://console.cloud.google.com/appengine) in the\n Google Cloud console. The location information in the upper right-hand corner\n of the dashboard applies to both App Engine and Firestore in Datastore mode.\n\nNext steps\n----------\n\n- For more information about building applications to meet your latency, availability and durability requirements, see [Geography and Regions](/docs/geography-and-regions#multi-regional_resources).\n- For a map of locations, see [Cloud Data Center Locations](/about/datacenters)."]]