mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
ed00d67c99
On Postgres, get_recordset_sql loads all the results into memory (within the Postgres library, which doesn't count towards the PHP memory limit, but does count towards making your server run out of memory) as soon as the query completes. This commit changes the code to use cursors, which in Postgres allow the results to be returned in smaller chunks (by default 100,000 rows).