I have infinite scroll running an expensive query, and running the additional count query makes it worse. I've overridden a few other settings on views_full_pager and it seems to work fine w/out the count w/ limited testing. Attached is the patch if you think it might be useful to eliminate the need to do a count query in your module.

CommentFileSizeAuthor
infinite_scroll_no_count.patch1.3 KBEquinger
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rjbrown99’s picture

Status: Active » Needs review

Patch here, changing status.

hefox’s picture

Tested it with one view, worked fine (other views broken for unrelated issue)

smitty’s picture

Issue summary: View changes

I tired this patch with 7.x-1.x-dev (02.10.2014) and had the following problems:

The loading of the continuation pages worked only one single time: Opening the view for the first time was ok: all pages are loaded as expected. But after going back to the homepage and coming back to the view only the first page was loaded. After scrolling down not even the ajax-loader.gif appeared and no more content was loaded.

After emptying the complete cache everything worked well again. But again only one time ...

Since the patch addresses version 6.x-1.x-dev and I tried version 7.x-1.x-dev this might be a problem of the different versions. But perhaps it's worth to have a look if this problem is existing in a pure 6.x-1.x-dev-Installation too?

Honza Pobořil’s picture

Status: Needs review » Closed (outdated)