Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Относится только к версии Cloud Firestore Enterprise.
На этой странице описываются квоты и ограничения запросов для Cloud Firestore с совместимостью с MongoDB.
Использование бесплатного уровня
Cloud Firestore с совместимостью с MongoDB предлагает бесплатный тарифный план, позволяющий бесплатно начать работу с Cloud Firestore с совместимостью с MongoDB. Стоимость тарифных планов указана в таблице ниже.
Суммы бесплатного уровня применяются ежедневно и обнуляются в полночь по тихоокеанскому времени.
Уровень бесплатного пользования распространяется только на одну базу данных Cloud Firestore с совместимостью с MongoDB в каждом проекте. Уровень бесплатного пользования будет предоставлен первой базе данных, созданной в проекте без уровня бесплатного пользования. Если база данных с примененным уровнем бесплатного пользования будет удалена, уровень бесплатного пользования будет предоставлен следующей созданной базе данных.
Бесплатный уровень
Квота
Сохраненные данные
1 ГиБ
Прочитанные единицы
50 000 в день
Запишите единицы
40 000 в день
Исходящая передача данных
10 ГиБ в месяц
Следующие операции и функции не включают бесплатное использование. Для использования этих функций необходимо включить биллинг :
Управляемые удаления (TTL)
Резервное копирование данных
Восстановление операций
Дополнительную информацию о порядке выставления счетов за эти функции см. в разделе Цены на хранилище .
Стандартные ограничения
В таблицах ниже показаны ограничения, действующие для Cloud Firestore с совместимостью с MongoDB. Это жёсткие ограничения, если не указано иное.
По умолчанию квота равна 0, поскольку эта функция находится в списке разрешенных. Вы можете запросить увеличение квоты, заполнив форму запроса на доступ CMEK .
Коллекции, документы и поля
Предел
Подробности
Ограничения на имена коллекций
Должны быть допустимыми символами UTF-8.
Не должен быть длиннее 1500 байт.
Невозможно сопоставить регулярное выражение __.*__
Не может содержать $
Не может быть пустой строкой ( "" )
Не может содержать нулевой символ
Не может начинаться с `system.` и не может содержать `.system.`.
Ограничения на идентификаторы документов ( _id )
_id документа (поле верхнего уровня) должен быть типом ObjectId, строкой, 64-битным целым числом, 32-битным целым числом, числом типа Double или двоичным значением. Другие типы BSON не поддерживаются.
Не должен быть длиннее 1500 байт.
Для идентификаторов строк:
Должны быть допустимыми символами UTF-8.
Не может быть пустой строкой ( "" )
Невозможно сопоставить регулярное выражение __.*__
Для 64-битных целочисленных идентификаторов 64-битный 0 (0L) не поддерживается.
Максимальный размер документа
4 МБ
Ограничения на имена полей
Должны быть допустимыми символами UTF-8.
Не может быть пустой строкой ( "" )
Невозможно сопоставить регулярное выражение __.*__
Максимальный размер имени поля
1500 байт
Максимальный размер пути поля
1500 байт
Максимальный размер значения поля
4 МБ - 89 байт
Максимальная глубина полей на карте или в массиве
20
Поля типа «карта» и «массив» добавляют один уровень к общей глубине объекта. Например, следующий объект имеет общую глубину в три уровня:
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-09-06 UTC."],[],[],null,["\u003cbr /\u003e\n\n\n|--------------------------------------------------------|\n| *Relevant to Cloud Firestore Enterprise edition only.* |\n\n\u003cbr /\u003e\n\nThis page describes the request quotas and limits for Cloud Firestore with MongoDB compatibility.\n\nFree tier usage\n\nCloud Firestore with MongoDB compatibility offers a free tier that lets you get started with\nCloud Firestore with MongoDB compatibility at no cost. The free tier amounts are listed in the following\ntable.\n\nFree tier amounts are applied daily and reset at midnight Pacific time.\n\nThe free tier applies to only one Cloud Firestore with MongoDB compatibility database per project.\nThe first database that is created in a project without a free tier database\nwill get the free tier. If the database with the free tier applied is deleted,\nthe next database created will receive the free tier.\n\n\u003cbr /\u003e\n\n| Free tier | Quota |\n|------------------------|------------------|\n| Stored data | 1 GiB |\n| Read units | 50,000 per day |\n| Write units | 40,000 per day |\n| Outbound data transfer | 10 GiB per month |\n\n\u003cbr /\u003e\n\nThe following operations and features don't include free usage.\nYou must [enable billing](https://cloud.google.com/billing/docs/how-to/modify-project) to use these features:\n\n- Managed deletes (TTL)\n- Backup data\n- Restore operations\n\nFor more information about how these features are billed, see\n[Storage pricing](https://cloud.google.com/firestore/enterprise/pricing#storage-size#storage-size).\n\nStandard limits\n\nThe following tables show the limits that apply to\nCloud Firestore with MongoDB compatibility. These are hard limits unless otherwise noted.\n\nDatabases\n\n| Limit | Details |\n|--------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Maximum number of databases per project | 100 [Contact support](https://cloud.google.com/support-hub) to request an increase to this limit. |\n| Maximum number of [customer-managed encryption keys (CMEK) databases](/docs/firestore/enterprise/cmek) per project | 0 By default the quota is 0 because this feature is behind an allowlist. You can request to increase the quota by filling in [the CMEK access request form](https://docs.google.com/forms/d/e/1FAIpQLSfKs8wJf4IXu1NizvfyU2vT59JDbdPvkehMVZ2ab5l_aDLIIA/viewform?resourcekey=0-O15dlRFvA0JIDmh6VFUEcA). |\n\nCollections, documents, and fields\n\n| Limit | Details |\n|-------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Constraints on collection names | - Must be valid UTF-8 characters - Must be no longer than 1,500 bytes - Can't match the regular expression `__.*__` - Can't contain `$` - Can't be the empty string (`\"\"`) - Can't contain the null character - Can't begin with \\`system.\\` and can't contain \\`.system.\\`. |\n| Constraints on document IDs (`_id`) | - Document `_id` (top-level field) must be an ObjectId, String, 64-bit integer, 32-bit integer, Double, or Binary. Other BSON types are not supported. - Must be no longer than 1,500 bytes - For String IDs: - Must be valid UTF-8 characters - Can't be the empty string (`\"\"`) - Can't match the regular expression `__.*__` - For 64-bit integer IDs, 64-bit 0 (0L) is not supported. |\n| Maximum size for a document | 4 MiB |\n| Constraints on field names | - Must be valid UTF-8 characters - Can't be the empty string (`\"\"`) - Can't match the regular expression `__.*__` |\n| Maximum size of a field name | 1,500 bytes |\n| Maximum size of a field path | 1,500 bytes |\n| Maximum size of a field value | 4 MiB - 89 bytes |\n| Maximum depth of fields in a map or array | 20 Map and array fields add one level to the overall depth of an object. For example, the following object has a total depth of three levels: ``` { nested_object: { #depth 1 nested_array: [ #depth 2 { foo: \"bar\" #depth 3 } ] } } ``` |\n\nReads, writes, and transactions\n\n| Limit | Details |\n|------------------------------|----------------------------------------------------|\n| Memory limit for a query | 128 MiB |\n| Time limit for a transaction | 270 seconds, with a 60-second idle expiration time |\n\nIndexes\n\n| Limit | Details |\n|--------------------------------------------------------|----------------------------------------------------------------------------------------------------|\n| Maximum number of indexes for a database | 1000 [Contact support](https://cloud.google.com/support-hub) to request an increase to this limit. |\n| Maximum number of index entries for each document | 40,000 |\n| Maximum number of fields in an index | 100 |\n| Maximum size of an index entry | 7.5 KiB |\n| Maximum sum of the sizes of a document's index entries | 8 MiB |\n\nTime to live (TTL)\n\n| Limit | Details |\n|-----------------------------------------------------|---------|\n| Maximum number of TTL configurations for a database | 500 |"]]