Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291535

Replace the mini pager with a lite pager (which does not run a count query)

$
0
0

Problem/Motivation

If you have a big site, like http://drupal.org you might have performance problems with pagers, because the count the amount of total items in your list using a sql query.

Proposed resolution

Contrib has a module which create a pager without the count query using the following technique:

  • Query for one more item then needed.
  • If you found one more item, you know that there is another page.
  • Drop that extra item before rendering.

Viewing all articles
Browse latest Browse all 291535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>