[wp-trac] [WordPress Trac] #32144: get_terms with child_of

WordPress Trac noreply at wordpress.org
Mon Apr 27 14:06:20 UTC 2015


#32144: get_terms with child_of
--------------------------+------------------------------
 Reporter:  shifty51      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by boonebgorges):

 If you're experiencing memory issues with this `in_array()` check, it
 suggests that you have a very large number of taxonomy terms, arranged in
 very deep hierarchies. Is this right? Can you give some numbers here -
 about how many folders do you have, and are they very very nested?

 I can see a change we could make that should improve performance here
 (switch from `in_array()` to `isset()`, and flip the array), but before
 making this change, I want to be sure that this isn't a symptom of a
 deeper problem.

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


More information about the wp-trac mailing list