Development:XML database schema
From MoodleDocs
Note: This article is a work in progress. Please use the page comments for any recommendations/suggestions for improvement.
The goal of these pages is to document, explain and follow the evolution of the integration between Moodle and other RDBS, using the ADOdb XML Schema (AXMLS), built over the ADOdb Data Dictionary, that comes with the ADOdb library, used by Moodle to perform all DB operations since the beginning.
This page is 100% work in progress..
Preliminary tests
The roadmap
Todo list
- We need to change all the uses of the LIMIT offset, num clause to use the cross-db compatible SelectLimit() function. Two alternatives seem possible:
- Create a new set of get_records_limit() (and get_recordset_limit() ?) functions, allowing to specify the offset, num parameters.
- Modify the current get_records() (and get_recordset()) functions to allow two more optional parameters (offset, num)
- Analyse the impact of such SelectLimit() calls under SQL*Server, Oracle... because it's emulated by ADOdb on those DBs, because their lack of support for the LIMIT clause. As the offset parameter grows, ADOdb must iterate over more records to get the desired window and it could be a problem under long sets of records!
See also
- XMLDB preliminary links - A collection of links about general info, searched and analysed at the initial stages of the project.