Back to search

Universidade de Coimbro

Design and implementation of a relational data model supported in Postgres Sakai Learning Management System

Abstract

dc:description.abstract

This thesis aims to study database portability in the context of the large, enterprise legacy code that is Sakai LMS, which is a free, community-source, educational software platform designed to support teaching and research, and has beenunder continuous development and production for the past 20 years.The application is committed to database portability and currently supports Oracle and MySQL and wishes to support PostgreSQL going forward. The application mixes hand-constructed SQL, templated SQL, and data persistence by a JavaORM solution, JPA. The goal is not to rewrite the application to use a new wayto generate SQL but to look at the effort required to convert all SQL approachesfrom one dialect to another.To inform and help accomplish this engineering task, this thesis will have a deeperexamination of how the application executes all database-related operations andexplore how the SQL dialects diverge among the various databases. This paperwill also look at strategies to add a new database dialect or convert SQL from onedialect to another, exploring the jOOQ library and then testing its effectiveness inthis internship’s problem.This thesis work contributed to the progress in the challenge of inserting the PostgreSQL dialect into SakaiLMS:• Sakai LMS can now start up with a PostgreSQL database, using a MySQLSQL service that gets translated to Postgres.• The proposal of an architecture that can build the base for a translationsserver that enables Sakai LMS to be fully compatible with Postgres and,thanks to the way jOOQ’s SQL translator works, other relational databases,without modifying the SQL service.In addition to that, this work also allowed us to conclude that jOOQ’s SQL translator works for most translations, but not always. So it’s necessary to modifyany jOOQ SQL translator layer to cope with the errors it throws. As we couldconclude, manual edition and approval of unsuccessful translations are enough.Another conclusion taken was that the SQL service in Sakai isn’t the only entityresponsible for executing SQL statements in Sakai. This turned out to be a limitation in the work’s results because the proposed architecture wasn’t expectingthat behavior from Sakai.

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Silva, Henrique Tavares
Advisors dc:contributor.advisor
  • Cabral, Bruno Miguel Brás
  • Severance, Charles

Subjects

dc:subject × 6

Rights

dc:rights
Statement dc:rights
  • openAccess
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Tid
203337956

Chain of custody

source
Harvested from
Universidade de Coimbro
Base URL
estudogeral.sib.uc.pt/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Silva, Henrique Tavares. Design and implementation of a relational data model supported in Postgres Sakai Learning Management System. 2023. https://hdl.handle.net/10316/107953