Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>About this problem, you might be interested by this section of the manual : <a href="http://framework.zend.com/manual/en/zend.paginator.usage.html#zend.paginator.usage.dbselect" rel="nofollow noreferrer"><strong>39.2.2. The DbSelect and DbTableSelect adapter</strong></a>, which states <em>(quoting, emphasis mine)</em> :</p> <blockquote> <p>... the database adapters require a more detailed explanation. <br>Contrary to popular believe, these adapters <strong>do not fetch all records from the database</strong> in order to count them. <br><br>Instead, the adapters manipulates the original query to produce the corresponding <code>COUNT</code> query. <br>Paginator then executes that <code>COUNT</code> query to get the number of rows. <br><br>This does require an extra round-trip to the database, but <strong>this is many times faster than fetching an entire result set and using <code>count()</code></strong>. <br>Especially with large collections of data.</p> </blockquote> <p><em>(There is more to read on that page -- and there is an example that should give you more information)</em></p> <p><br> The idea is that <strong>you will not fetch all data yourself anymore</strong>, but you'll tell to <strong><code>Zend_Paginator</code></strong> which Adapter it must use to access your data.</p> <p>This Adapter will be specific to "<em>Data that is fetched via an SQL query</em>", and will know how to paginate it directly on the database side -- which means fetching only what is required, and not all data like you initialy did.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload