I have to handle large amount of data retrieved from server using ajax and store it in JavaScript. I am currently using an array to store all the data. this is how I get data and store it in the javascript:
var buffer=new Array();
//when each ajax returns
buffer=buffer.concat(JSON.parse(ajaxReq.responseText));
there are two questions in my mind:
- Is using an array to store all the data efficient, is there an overflow issue with 1 million rows of data??
- How is the
concat
performance? how can it be optimized here?
thanks for any input.