title: QueryDsl SpringData Jpa findAll how to avoid count()
body: <p>I'm trying to use QueryDSL with Spring Data JPA, I want to use <code>findAll</code> with pagination but the count is always performed, also if return type is a <code>List</code>.
  I don't need this count because it is really slow and I could loose the benefit of pagination.</p>
  
  <p>Any solutions for this problem?</p>
  
  <p>This is the <code>count()</code>, it requires about 30 seconds on MySQL:</p>
  
  <p><a href="https://stackoverflow.com/questions/37204646/mysql-too-slow-on-simple-query-between-two-tables/37205411#37205411">Mysql too slow on simple query between two tables</a></p>
  
  <p>In any case I don't want repeat the count for each page I require, this information is required just for first call.</p>