title: Transferring JSON data from Android app to database via webservice
body: <p>I am developing an Android application which logs sensor data and summarizes it, the output being JSON data. This is done in order to have a smaller amount of data to be transferred to the server, since it will be stored on a cloud database. I am building a RESTful web service, in order to do so. I have two options that I am considering right now:</p>
  
  <p>1) call the web service from the Android app for every record to insert it into the database</p>
  
  <p>2) call the web service from the Android app to transfer a whole JSON file and then parse it in the cloud and insert every parsed record in the database</p>
  
  <p>In my opinion, option 2 seems more efficient as there could be 100s of records to be inserted in the database and calling the webservice 100s of time would not be ideal. What is your opinion guys, please?</p>