Make WordPress Core

Opened 2 years ago

Closed 7 weeks ago

Last modified 6 weeks ago

#38784 closed defect (bug) (wontfix)

Set no_found_rows inside _WP_Editors::wp_link_query

Reported by: david.binda Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6.1
Component: Editor Keywords:
Focuses: performance Cc:


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.

Attachments (1)

38784.patch (451 bytes) - added by david.binda 2 years ago.
Setting no_found_rows inside the _WP_Editors::wp_link_query

Download all attachments as: .zip

Change History (3)

2 years ago

Setting no_found_rows inside the _WP_Editors::wp_link_query

#1 @iseulde
7 weeks ago

  • Resolution set to wontfix
  • Status changed from new to closed

This ticket has not seen any activity in over two years, so I'm closing it as "wontfix". It may not be relevant anymore, or there just may not be enough interest in it to keep it around. If you think this ticket does deserve some attention again, feel free to reopen with updated steps to reproduce with WordPress 5.0.

#2 @ocean90
6 weeks ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.