[wp-trac] [WordPress Trac] #57645: Implement lazy loading term meta in WP_Term_Query

WordPress Trac noreply at wordpress.org
Tue Mar 28 22:55:34 UTC 2023


#57645: Implement lazy loading term meta in WP_Term_Query
--------------------------------------+--------------------------
 Reporter:  spacedmonkey              |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  6.3
Component:  Taxonomy                  |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------

Comment (by peterwilsoncc):

 I think this is a good idea.

 As some idle pondering rather than a passive aggressive change request.

 Would it be better to introduce an additional attribute to term queries,
 `lazy_load_term_meta` with the default value true?

 If for some reason, a developer wishes to group the database queries to
 run all at once per the current set up, they could set the value to
 `false`.

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


More information about the wp-trac mailing list