Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
infinite_scroll_no_count.patch | 1.3 KB | Equinger | |
Comments
Comment #1
rjbrown99 CreditAttribution: rjbrown99 commentedPatch here, changing status.
Comment #2
hefox CreditAttribution: hefox commentedTested it with one view, worked fine (other views broken for unrelated issue)
Comment #3
smitty CreditAttribution: smitty commentedI 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?
Comment #4
Honza Pobořil CreditAttribution: Honza Pobořil as a volunteer commented