-
Improvement
-
Resolution: Fixed
-
Minor
-
2.9, 3.1
-
MOODLE_29_STABLE, MOODLE_31_STABLE
-
MOODLE_32_STABLE
-
Sharing some changes we've made to the postgresql DB driver over the years for performance reasons.
Most of the diff here revolves around adding the static table metadata caches back, and parsing queries for 'evil' things where we must reset to avoid stale data.
We've also ensured redundant LIMIT/OFFSET clauses are not added to queries; this helps the planner avoid a few bad cases, especially with OFFSET 0.
In a selection (non-sleeping) of unit tests, this patch alone cuts run time 15%.
Similar results may occur in e.g. upgrade scripts with many calls to update_record (see MDL-48604).
- has been marked as being related by
-
MDL-54947 Update PostgreSQL binary (bytea) handling and improve connection performance
-
- Closed
-
- will be (partly) resolved by
-
MDL-53208 Reduce de-referencing on MUC and static acceleration
-
- Closed
-
-
MDL-53213 Make databasemeta cache a simpledata cache and improve performance
-
- Closed
-
- will help resolve
-
MDL-48604 Not caching database table meta data is slowing down upgrades
-
- Open
-