-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Here is my code for getSize() method:
@Override
public int getSize() {
return sessionRepository.getCountByPartnerOperatorCountPhoneFromTimeBeforeTime(
selectedPartner, selectedOperator, fromTime, beforeTime, hideNullStatistic);
}
Parameters in method call are filters, so when executing code in viewModel with implementation of AbstractListModel, this method is being called many times, every time executing a query to a db. Thus, with ~26000 rows in table, it takes about 10 min for a page to render.
Is there any way to overcome this problem (maybe make zk not to call getSize() so often or use different component)?
Asked: 2023-11-10 21:17:23 +0800
Seen: 3 times
Last updated: Nov 10