Good idea. Thanks! I will use LIMIT and OFFSET for now. If anyone knows if Ignite Spring Data supports pagination please let me know.
On Tue, Sep 4, 2018 at 5:00 PM Prasad Bhalerao <prasadbhalerao1...@gmail.com> wrote: > I am not sure about ignite spring data but I have implemented pagination > using OFFSET and LIMIT in ignite SQL queries. > > Thanks, > Prasad > > On Tue, Sep 4, 2018 at 4:22 PM Lokesh Sharma <lokeshh.sha...@gmail.com> > wrote: > >> Pagination works in Spring Data with following declaration in >> EntityRepository.java >> >> Page<Entity> findAllByOrderById(Pageable pageable); >> >> >> But this produces error in Ignite: >> >> java.lang.ClassCastException: >>> com.project.common.igniteserver.model.Entity cannot be cast to >>> org.springframework.data.domain.Page >> >> >> So, does Ignite support pagination? >> >> >>