[wp-trac] [WordPress Trac] #18536: Improve performance of WP_Query core
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 3 17:01:54 UTC 2012
#18536: Improve performance of WP_Query core
--------------------------------------------------+------------------
Reporter: cheald | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.4
Component: Performance | Version:
Severity: normal | Resolution:
Keywords: early has-patch commit needs-testing |
--------------------------------------------------+------------------
Changes (by jeffstieler):
* cc: jeff@… (added)
Comment:
Testing `18536.5.diff`, it breaks in the situation that a plugin has
filtered `'posts_request'` and changed the selected fields.
It would be difficult to check for fields after this filter.. should we
expect a filter on `'posts_request'` to know the pitfalls and modify the
query accordingly so it can still be optimized?
It looks like filtering `'post_fields'` or `'posts_fields_request'` in
addition to `'posts_request'` could shortcut the `$expand_ids`
functionality..
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18536#comment:58>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list