Skip to main content

FAQ

Metering and Billing FAQs

What are the billing differences between Document Databases and MySQL databases?

  • Document Databases: Metering includes API calls and data storage usage
  • MySQL Database: Metering includes compute resource usage and storage usage
Note

When using data models on both databases, calls to the data models will also record the number of API calls.

Query conditions are correct but results are empty

When using database queries, if empty results are returned, there are usually two situations:

  1. No data matches the query conditions
  2. Data is filtered by permission control

Troubleshooting Methods

  1. Confirm data existence

    • Check directly in the CloudBase console whether the target data exists in the collection
    • Verify that the creation time and field values of the data meet expectations
  2. Check permission configuration

    • Check whether the basic permission settings of the collection allow the current user to read
    • Database read/write operations use the _openid field to determine data ownership
    • If using security rules, verify that the rule expressions are correct
    • Confirm that the query conditions include the necessary fields required by security rules
  3. Verify query conditions

    • Simplify query conditions and gradually troubleshoot which condition causes empty results
    • Check whether field names, data types, and query syntax are correct