Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ACS Multiple Cloud Queries, how to best manage?

$
0
0

Hello,

I am writing an app that has to upload large amount of new custom objects / photos to ACS (to backup after the app comes back to a data connection) and was wondering what the best practise / methods to do this are? For instance if my code needs to do the following (roughly)

//customObjectsArray has 50 objects
//photoArray has 75 photos
 
For (var x = 0; x < customObjectArray.length; xx){
    uploadCustomObjectIntoACS(customObjectArray[x]);
}
 
 
 
For (var x = 0; x < photoArray.length; x++){  
    uploadPhotoToACS(photoArray[x]);
}

Can we just run it like this, or is there a max number of connections or limit to the rate you can call cloud queries? I have tried to upload large sets of new objects in a for loop and it seems to refuse the connection after a bit (not surprising).

However, when I rewrote it to be recursive with the cloud call back function it would take forever to upload that many photos.

Thanks for the help.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>