title: AngularJs with large JSON array
body: <p>1Ok so I'm developing an application that has a Parent-Child hierarchy using AngularJs to bind the data received from the RESTFUL web service to the view.</p>
  
  <p>An example of the JSON the web service would be returning would be:</p>
  
  <pre><code>{"id":0,"name":"Parent One","listOfChildren":[{"id":0,"name":"Child 1","childType":"CHILD1"},{"id":1,"name":"Child 2","childType":"CHILD1"}]}
  </code></pre>
  
  <p>With this information I know I can put it into an array and display it on a table using Angulars ng-repeat but my problem is a Parent could have hundreds/thousands of children and there could be hundreds/thousands parents so the array would be colossal. </p>
  
  <p>Another problem is when I update a parent with a new child I would have to traverse the whole array looking for the parent and then insert the child into it which is extremely ineffecient.</p>
  
  <p>So my question is basically is there any way I can do this more efficiently without having to use one big array?</p>
  
  <p>Thanks for any help provided.</p>