title: Restful API - handling large amounts of data
body: <p>I have written my own Restful API and am wondering about the best way to deal with large amounts of records returned from the API.  </p>
  
  <p>For example, if I use <code>GET</code> method to <code>myapi.co.uk/messages/</code> this will bring back the XML for all message records, which in some cases could be 1000's.  This makes using the API very sluggish.  </p>
  
  <p>Can anyone suggest the best way of dealing with this? Is it standard to return results in batches and to specify batch size in the request?</p>