Parse platform Parse.com考虑了多少API请求?

Parse platform Parse.com考虑了多少API请求?,parse-platform,parse-cloud-code,Parse Platform,Parse Cloud Code,我写了一个云代码 Parse.Cloud.define("getApartmentVendorProduct", function(request, response) { var isApartmentCallComplete = false; var isVendorCallComplete = false; var isProductCallComplete = false; var result = {}; var apartmentQuery = new Par

我写了一个云代码

Parse.Cloud.define("getApartmentVendorProduct", function(request, response) {
  var isApartmentCallComplete = false;
  var isVendorCallComplete = false;
  var isProductCallComplete = false;

  var result = {};

  var apartmentQuery = new Parse.Query("Apartment");
  apartmentQuery.find({
    success: function(results) {
      isApartmentCallComplete = true;
      results.apartments = results;
    }
  });

  var vendorQuery = new Parse.Query("Vendor");
  vendorQuery.find({
    success: function(results) {
      isVendorCallComplete = true;
      results.vendors = results;
    }
  });

  var productQuery = new Parse.Query("Product");
  productQuery.find({
    success: function(results) {
      isProductCallComplete = true;
      results.products = results;
    }
  });

  setInterval(function () {
    if (isApartmentCallComplete && isVendorCallComplete && isProductCallComplete) {
      response.success(results);
    }
  }, 50);

});
PS:我很清楚setInterval不能用于解析。。此代码仅用于理解

在这个云函数中,我将执行3个查询操作

从我的Android应用程序中,我调用了这个云代码

这是我的问题。 考虑了多少API请求

1 3个由云代码发出的API请求和1个由Android发出的API请求-共4个


2安卓仅提出1个API请求。-总计1

选项为1,它发出4个请求

我尝试使用一个示例代码来测试突发限制

Parse.Cloud.define("testBurstLimit", function(request, response) {
  var globalI = 0;
  for(var i = 0; i < 500; i++) {
    var productQuery = new Parse.Query("Product");
    productQuery.find({
      success: function(results) {
        console.log("success " + i  + " " + globalI);
        globalI++;
        if (globalI == 250) {
          response.success("success");
        }
      },
      error: function(error) {
        isApartmentCallComplete = true;
        if (isApartmentCallComplete && isVendorCallComplete && isProductCallComplete) {
          console.log(error.message + " " + error.code);
        }
      }
    });
  }
});

这应该是选项1。您可以在应用程序的分析仪表板中检查Api请求。谢谢,是的,选项是1。我将发布我尝试过的代码
{"code":155,"error":"This application performed 1814 requests over the last 28s, and exceeded its request limit. Please retry in 32s"}