The data set that is to be displayed is very huge. As per my analysis, when the query is fired. It calculates the Total Count and then execute the actual query to fetch data. As the result is heavy, so time taken is huge.
Q. How can i increase the performance of my grid. I extended the grid from ListGrid and here is the code in its constructor.
I read through the resultset documentation but didnot get idea for how to implement it.If you can suggest something that can do server side paging, it would be helpful.
Q. How can i increase the performance of my grid. I extended the grid from ListGrid and here is the code in its constructor.
Code:
ListGridField[] listGridArray = prepareListGrid();
int pageSize = 50;
this.setDataPageSize(pageSize);
this.setCanHover(true);
this.setShowHover(true);
this.setCanSelectCells(true);
this.setCanDragSelect(true);
this.setWrapCells(false);
this.setShowRowNumbers(true);
this.setAutoFetchData(true);
this.setAutoFitFieldWidths(true);
this.setDataSource(gridConfiguration.getDatasource());
this.setFetchOperation(gridConfiguration.getFetchOperation());
this.setInitialCriteria(criteria);
this.setCriteria(criteria);
this.setFields(listGridArray);