[wp-trac] [WordPress Trac] #62801: Improve performance of X-WP-TotalPages queries

WordPress Trac noreply at wordpress.org
Wed Jan 29 15:51:23 UTC 2025


#62801: Improve performance of X-WP-TotalPages queries
--------------------------------------+-----------------------------
 Reporter:  spacedmonkey              |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  REST API                  |     Version:  3.7
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  performance
--------------------------------------+-----------------------------

Comment (by joehoyle):

 Could it be that an out of bounds query means `found_posts` is 0? I.e. if
 I hit `?paged=100` when there is only 10 pages, I guess `found_posts` even
 with the `FOUND_ROWS()` returns 0?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62801#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list