Hi
Below is code snippet which loads around 10K records from oracle db and takes around ~65 secs (which is not acceptable by end users) to load and populate the data on browser. I am using standard edition of dhtmlx components and used Java connector class to get data.
var gridInfo={
divId:‘downloadDataDetails’,
columnString:“Clinical Study,Study Form,Start Date,End Date,File Type, Exported By,Exported On, Status”,
columnWidth:“10,30,10,10,5,15,15,5”,
columnAlign:“left,left,left,left,left,left,left,left”,
pagingArea:“exportData_PagingArea_div”,
infoArea:“exportData_InfoArea_div”,
//sortInfo:“connector,connector,connector,connector,connector,connector,connector,connector”
sortInfo:“str,str,connector,connector,str,str,connector,str”
}
ExportDataGrid =createGridObj(gridInfo);
ExportDataGrid.loadXML(“LoadgridQString.do?connector=true”);
}
function createGridObj(gridInfo){
var gridObj = new dhtmlXGridObject(gridInfo[‘divId’]);
// gridObj.setImagePath(“dhtml_comp/imgs/”);
gridObj.setImagePath(“dhtml_comp/imgs/grid/”);
gridObj.setHeader(gridInfo[‘columnString’]);
gridObj.setInitWidthsP(gridInfo[‘columnWidth’]);
gridObj.setColAlign(gridInfo[‘columnAlign’]);
gridObj.attachHeader("#select_filter,#text_filter,#select_filter,#select_filter,#select_filter");
gridObj.setEditable(false);
gridObj.setSkin(“dhx_skyblue”);
gridObj.init();
gridObj.enableSmartRendering(true);
gridObj.enablePaging(true, 15, 3, gridInfo[‘pagingArea’], true, gridInfo[‘infoArea’]);
gridObj.setPagingSkin(“bricks”);
gridObj.setColSorting(gridInfo[‘sortInfo’]);
return gridObj;
}
Questions that I have:
1: Can this performance related issue (data loading for 10 K takes a min) be resolved using smart rendering with dynamic loading ? smart rendering with dynamic loading is supported in Standard edition as well, which can be used making gridObj.enableSmartRendering(true). Or have I missed any setting or interpreting smart rendering with dynamic loading incorrectly?
2: And pagination for large data sets is supported in Pro Edition only. I used pagination as given above in code snippet. Does this data loading performance issue can be resolved using pagination with Pro Edition?
Please do reply.
Thanks in advance,
~Shital.