Replies: 4 comments 7 replies
-
How do you define large data collections ? ;-) |
Beta Was this translation helpful? Give feedback.
-
Can this also be investigated for Select with many objects. |
Beta Was this translation helpful? Give feedback.
-
public class App implements EntryPoint {
/**
* This is the entry point method.
*/
public void onModuleLoad() {
var layout = Layout.create("Domino-ui starter")
.show(ColorScheme.BLUE);
List<City> cities = new ArrayList<>();
for(int i=0; i<5000;i++){
cities.add(new City("name - "+i, "code - "+i));
}
TableConfig<City> tableConfig = new TableConfig<City>()
.addColumn(ColumnConfig.<City>create("name", "Name")
.setCellRenderer(cellInfo -> DominoElement.div().appendChild(TextNode.of(cellInfo.getRecord().getName())).element())
)
.addColumn(ColumnConfig.<City>create("code", "code")
.setCellRenderer(cellInfo -> DominoElement.div().appendChild(TextNode.of(cellInfo.getRecord().getCode())).element())
);
LocalListDataStore<City> localListDataStore = new LocalListDataStore<>();
DataTable<City> cityDataTable= new DataTable<>(tableConfig, localListDataStore);
layout.getContentPanel().appendChild(Card.create()
.appendChild(cityDataTable)
);
localListDataStore.setData(cities);
}
} It pretty fast even though in this example I had to loop the 5000 records twice unlike the javascript sample above. |
Beta Was this translation helpful? Give feedback.
-
I also encountered a slow perfomance at the DataTable especially having many columns and rows and using a Select as a cell renderer. This leads to loading times for the table up to several minutes. I will try to provide an example for that |
Beta Was this translation helpful? Give feedback.
-
A discussion aimed at the performance of datatable with large data collection especially while using the LocalListStore.
Beta Was this translation helpful? Give feedback.
All reactions