I have a single json array which contains server logging data. Using flot I am plotting the graph, I have successfully done with 40+ thousand json objects.
I observed there were 581901 elements in and array. When I try to parse the browser is crashing. the size of json data is approx 55MB. Browser used is FF. Any efficient way to do this?
Sample JSON out of 581901 lines
{"date":"30-May-2016:00:00:00","url":"retriveImage","status":"200","data":"7480"}
I am doing this:
for(var i=0;i<da.length;i++){
var ts = moment(da[i].date,"D-MMM-YYYY");var ts1 = moment("30-May-2016","D-MMM-YYYY");
if(ts.isSame(ts1)){
var hour = parseInt(moment(da[i].date,"D-MMM-YYYY H:mm:ss").format("H"));
var code =parseInt(da[i].status);
if(code<500){
ct200++;
}else{
if(code==503){
e503++;
}else{
eoth++;
}
ct503++;
}
}
two.push([hour,ct200]);
five.push([hour,ct503]);
}