title: Page<> vs Slice<> when to use which?
body: <p>I've read in Spring Jpa Data <a href="https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.special-parameters" rel="noreferrer">documentation</a> about two different types of objects when you 'page' your dynamic queries made out of repositories. </p>
  
  <p><strong>Page</strong> and <strong>Slice</strong></p>
  
  <pre><code>Page&lt;User&gt; findByLastname(String lastname, Pageable pageable);
  
  Slice&lt;User&gt; findByLastname(String lastname, Pageable pageable); 
  </code></pre>
  
  <p>So, I've tried to find some articles or anything talking about main difference and different <strong>usages</strong> of both, how <strong>performance</strong> changes and how <strong>sorting</strong> affercts both type of queries.</p>
  
  <p>Does anyone has this type of knowledge, articles or some good source of information?</p>