the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > WeChat development of cloud storage and cloud hosting the database is used in the same cloud database service, but their usage scenarios and data storage is different.
- Storage: The database developed by wechat cloud is mainly used for data storage and management of small programs or public accounts and other front-end services. Developers can add, delete, modify and check data through the cloud function call database API. The database in cloud hosting is mainly used for data storage and management of back-end services. Developers need to write back-end code and operate the database through the database client.
- Data structure: The database developed by wechat Cloud is a document database, which uses a data structure similar to JSON. Each document can contain different fields, which is more suitable for storing unstructured data. Databases in cloud hosting are relational databases that use a table and row structure, each of which has a specific column and data type, making it suitable for storing structured data.
- Data isolation: the database in the storage and cloud hosting developed by wechat cloud is two independent database instances, and the data is isolated from each other and does not affect each other. So if you need to share data between the wechat mini program and the cloud hosting, you need to manually sync the data to the two databases.
In a word, although the database in the storage developed by wechat cloud and the database in the cloud hosting are the same cloud database service, the usage scenario and data structure are different, so the appropriate database type should be selected according to the specific business requirements.