[wp-trac] [WordPress Trac] #38784: Set no_found_rows inside _WP_Editors::wp_link_query

WordPress Trac noreply at wordpress.org
Mon Nov 14 15:08:57 UTC 2016


#38784: Set no_found_rows inside _WP_Editors::wp_link_query
--------------------------+-----------------------------
 Reporter:  david.binda   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 Since the `WP_Query` inside the `_WP_Editors::wp_link_query` is not taking
 advantage of `found_posts` nor of `max_num_pages`, not setting
 `no_found_rows` and thus triggering a SQL query with `SQL_CALC_FOUND_ROWS`
 does not feel right.

 The extra queried information is not being used and forces the SQL query
 to scan much more rows than it needs to.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38784>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list