-
Bug
-
Resolution: Fixed
-
Major
-
3.2.5, 3.3.2, 3.4
-
PostgreSQL
-
MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
-
MOODLE_35_STABLE
-
MDL-60174-master -
The Moodle Docs state:
Where the number of records to be retrieved from DB is high, the get_records_xxx() functions above are far from optimal, because they load all the records in memory at the same time. Under those circumstances, it is highly recommended to use these get_recordset_xxx() functions instead, which use one nice mechanism to iterate over all the target records and save a lot of memory.
This is incorrect. In Postgres the get_recordset functions first load all results from the query returned by the database into PHP memory. An iterator of these results is then created.
On large tables this causes an out of memory error.
- caused a regression
-
MDL-63315 Cursor already declared DB errors with Postgres
- Closed