You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize count query for pagination_total: false option (#6911)
* Remove duplicated delegation
`total_pages` is listed twice.
* Remove ORDER BY from count subquery
Queries like `SELECT COUNT(*) FROM (SELECT DISTINCT resources.* FROM resources ORDER BY resources.created_at DESC LIMIT 1 OFFSET 30) subquery_for_count`
are too inefficient
* add specs about ensure count query does not include ORDER BY clause
* exclude also select because based on https://github.com/activeadmin/activeadmin/pull/7489\#issuecomment-1554197081
---------
Co-authored-by: Rafael Sales <rafaelcds@gmail.com>
Co-authored-by: David Rodríguez <deivid-rodriguez>
Co-authored-by: Matias Grunberg <matias@yellowspot.dev>
0 commit comments