This is a test site. Any changes will be lost!

Development:XML database schema: Difference between revisions

From MoodleDocs
Line 15: Line 15:
## Create a new set of get_records_limit() (and get_recordset_limit() ?) functions, allowing to specify the offset, num parameters.
## 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)
## 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 that clauses! As the offset parameter grows, ADOdb must iterate over more records to get the desired one and it could be a problem under long sets of records!


==See also==
==See also==

Revision as of 22:23, 16 May 2006

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

  1. 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:
    1. Create a new set of get_records_limit() (and get_recordset_limit() ?) functions, allowing to specify the offset, num parameters.
    2. Modify the current get_records() (and get_recordset()) functions to allow two more optional parameters (offset, num)
  2. 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 that clauses! As the offset parameter grows, ADOdb must iterate over more records to get the desired one 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.