spring-projects/spring-data-jpa — pull request #113 by thomasdarimont (2014-11-10 13:14:56+00:00)
Title: DATAJPA-477 - Avoid query creation in PagedExecution if count query returns 0.

We now skip the query creation if we detect that the preceding count query returned 0 or no results. Previously we always created a query in every case which was not necessary.