I have Big data my mysql in some table (10000000)
Pageable setPage = PageRequest.of(form.getCurrentPage(),
form.getListSizeInPage(),
Sort.by("num").descending());
So. When i call the Query like this.
Page<Entity> getList = repo.findall(setPage );
and mysql show findall query's call time is very short under 5sec. But the page api has call
select count(column) fomr table;
this query call time during 15sec over
could i change or edit count query?