Only the Chinese version of this page is provided currently. The English version will be provided soon.

Database Issues

Last updated: 2025-02-12 11:50:28

What To Do When the Database Capacity Reaches the Upper Limit?

To ensure reasonable use of resources, CloudBase imposes a database storage capacity limit for each environment. The database storage capacity of each environment is calculated separately.
If the remaining storage capacity of the database is below 10%, you will be notified via Short Message Service (SMS), Message Center, and mail. You can upgrade your environment version to enjoy more database storage capacity and avoid affecting the normal operation of your business.
If the database storage capacity of the environment is exhausted, writing data to the database is not allowed, but you can read and delete data.

Is There a Limit On the Number Of Collection Creations?

Up to 300 collections can be created in each environment.

Is There a Limit On the Creation Of Documents Within a Collection?

There is no limit on document creation within a collection, but if the number of documents is large, it is recommended to create indexes to speed up queries and searches.

Is There a Limit On the Number Of Index Creations?

Up to 100 indexes can be created in each collection, and each index can contain up to 31 fields.

Why Do Databases Have the _openid Field?

Each piece of data written from the WeChat client includes a default _openid field to identify which user the document comes from.

Why Does Modifying Database Collection Permissions Not Take Effect?

There is data caching in the background, and it will take effect within 1 minute at the latest.

What Are the Limitations On the Format Of Database Document Fields?

Letters + numbers + underscores + dots, no more than 32 characters, and not starting with an underscore, /, or dot.

Why Can Some Data In the Database Be Seen In the Console but Not Retrieved By the Client?

Please check the collection permissions. For permission types other than "public read," the system will enforce a check on the _openid field to see if it matches the current user identity.
If the data is added in the console, it is considered admin-added data and does not contain _openid information, so it does not belong to any user. This data can only be edited by the admin through the console and cannot be written through the client (even the admin cannot write through the client).

Can the Database Be Operated Directly Through the HTTP API?

It is not supported.