MDL-46079 Restore: Can run out of memory in get_records call
Merge branch 'MDL-46079-m26' of https://github.com/sammarshallou/moodle into MOODLE_26_STABLE