Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the database schema #3

Open
Xophmeister opened this issue Jan 8, 2018 · 0 comments
Open

Improve the database schema #3

Xophmeister opened this issue Jan 8, 2018 · 0 comments
Labels
enhancement New feature or request technical

Comments

@Xophmeister
Copy link
Member

The nature of the application implies that it ought to be entirely data-driven. That is, the operations one can apply ought to be a function of the state (i.e., a FSM). Currently, there are a number of hardcoded assumptions (e.g., how project years are loosely defined, how each project year has exactly three rotations, roles and permissions, etc.) that would be better defined in the database. For this, the schema needs to be enriched appropriately.

Moreover, while the ORM use has provided a degree of data normalisation, this isn't used productively. For example, certain queries could be optimised with joins executed by the database, rather than by programmatically computing the Cartesian product. I'm also not convinced that the ORM, by default, generates the most efficient indices.

Finally, there may be instances where non-relational data is stored, which may be better served by a different data model DBMS (in conjunction with the RDBMS).

@Xophmeister Xophmeister added enhancement New feature or request technical labels Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request technical
Projects
None yet
Development

No branches or pull requests

1 participant