[wp-trac] [WordPress Trac] #41350: Support for random order in WP_Term_Query::query()

WordPress Trac noreply at wordpress.org
Mon Oct 2 16:56:08 UTC 2017


#41350: Support for random order in WP_Term_Query::query()
-------------------------------------------------+-------------------------
 Reporter:  camthor                              |       Owner:
     Type:  feature request                      |  SergeyBiryukov
 Priority:  normal                               |      Status:  closed
Component:  Taxonomy                             |   Milestone:
 Severity:  normal                               |     Version:  4.8
 Keywords:  good-first-bug has-patch has-unit-   |  Resolution:  wontfix
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => wontfix
 * milestone:  4.9 =>


Comment:

 I agree with @JPry that this sort of usage should not be encouraged.
 Ordering by `rand()` has a considerable impact on database performance.
 Consistency of APIs is great, but consistency of functionality which can
 kill a server's performance isn't.

 Thanks for the suggestion, @camthor, and thanks very much for the patches
 @bretterer, but I'm going to close this one as a wontfix.

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


More information about the wp-trac mailing list