icefoganalytics / elcc-data-management

Data Management application for Education's Early Learning Child Centre
Apache License 2.0
0 stars 0 forks source link

Switching From Knex to Sequelize: Part 1 #12

Closed klondikemarlen closed 1 year ago

klondikemarlen commented 1 year ago

In progress at https://github.com/icefoganalytics/elcc-data-management/compare/main...icefoganalytics:elcc-data-management:issue-12/switching-from-knex-to-sequelize

Context

Knex is a straight sql generator and as such has limited capabilities, and requires manual optimization around multi-table queries. Sequelize is a Object-relational mapping (ORM) tool and as such handles everything that Knex does, plus supporting easy and efficient multi-table queries.

https://sequelize.org/ https://knexjs.org/

Examples of things that Knex does poorly but Sequelize does well

klondikemarlen commented 1 year ago

Switching to working on Add Relative Path Support To Api Typescript #14 first as it will make this much easier.