[wp-trac] [WordPress Trac] #18836: ORDER BY RAND() is slow

WordPress Trac noreply at wordpress.org
Thu Aug 21 11:31:28 UTC 2025


#18836: ORDER BY RAND() is slow
-------------------------------------------------+-------------------------
 Reporter:  scribu                               |       Owner:  pbearne
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.9
Component:  Query                                |     Version:
 Severity:  minor                                |  Resolution:
 Keywords:  early has-patch has-test-info dev-   |     Focuses:
  feedback changes-requested                     |  performance
-------------------------------------------------+-------------------------

Comment (by SirLouen):

 @peterwilsoncc feel free to send some commits to my PR if you think you
 can push it forward.

 I was working on this when I started testing mostly all the tickets in
 Trac available in the Testing Team list. This particularly caught my
 attention because testing was a little tricky and got me to a possible
 solution.

 The thing is that I'm not specialized in Query component and I'm focusing
 rn in other components, plus since this has stalled for a couple months
 I've lost all my momentum on this ticket (I would have to re-read all the
 docs about this algo in Stack Overflow, I barely remember now).

 If you don't have time to work on this either, I would de-Milestone it to
 `Future Release`

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


More information about the wp-trac mailing list