When getResources Starts to Hurt: Moving MODX Pagination to pdoPage
getResources struggles on deep MODX resource trees. Here's how to migrate paginated listings to pdoPage, with a worked example, verification steps, and the real trade-offs.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
getResources struggles on deep MODX resource trees. Here's how to migrate paginated listings to pdoPage, with a worked example, verification steps, and the real trade-offs.
Slow MODX listing pages are usually a snippet problem, not a server problem. Here's why pdoResources outperforms getResources, with a working example, pagination setup, and the trade-offs to check first.
Goal is to bound large resource result sets in ModX Revolution using xPDO limit/offset and present them via the getResources snippet pagination controls. Assumptions are ModX Revolution with xPDO ORM and MySQL. getResources builds xPDO queries from limit, offset and page parameters. Offset-based paging is simple to configure but database scans skipped rows a