v2.4.3 — Fix MySQL 1038 out-of-sort-memory on the Toplists admin list
Fixed
- Admin Toplists list page could hit MySQL error 1038 "Out of sort memory" once the table grew large enough that the default
ORDER BY last_synced DESCfilesort exceeded the host'ssort_buffer_size. Schema v1.15 adds indexes onlast_synced,name, anditem_count(ensureToplistsSortIndexes()), covering every columnToplistsQuery::ALLOWED_SORTcan hit that didn't already have one.
Verified on strike-odds.test: the Toplists admin list loads, View Details expands, Dashboard and Brands load, and the front-end casino cards still render. PHPUnit: 969 tests, 3131 assertions.