[wp-trac] [WordPress Trac] #47280: SQL_CALC_FOUND_ROWS is deprecated as of MySQL 8.0.17

WordPress Trac noreply at wordpress.org
Wed Jul 20 13:47:55 UTC 2022


#47280: SQL_CALC_FOUND_ROWS is deprecated as of MySQL 8.0.17
--------------------------------------------+-----------------------------
 Reporter:  javorszky                       |       Owner:  johnbillion
     Type:  enhancement                     |      Status:  reviewing
 Priority:  normal                          |   Milestone:  Future Release
Component:  Database                        |     Version:
 Severity:  normal                          |  Resolution:
 Keywords:  has-patch has-unit-tests early  |     Focuses:  performance
--------------------------------------------+-----------------------------

Comment (by akramipro):

 After research that I have , I found a solution for getting a count of
 queries that have `GROUP BY` .
 we can remove `GROUP BY` and then change count syntax to cover only fields
 that are used in `GROUP BY` .
 Please see my previous comment and compare it with this image to
 understand what I say .

 [[Image(https://i.ibb.co/dGYJvKj/Screenshot-3.png)]]

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


More information about the wp-trac mailing list