Giriş
Açıklaması şöyle
Örnek
Şöyle yaparız.
Açıklaması şöyle
A Page knows about the total number of elements and pages available. It does so by the infrastructure triggering a count query to calculate the overall number. As this might be expensive depending on the store used, Slice can be used as return instead. A Slice only knows about whether there’s a next Slice available which might be just sufficient when walking through a larger result set.
Şöyle yaparız.
Page<User> findByLastname(String lastname, Pageable pageable);
Slice<User> findByLastname(String lastname, Pageable pageable);
Hiç yorum yok:
Yorum Gönder