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

feat(GODT-2522): New DB layout #368

Merged
merged 3 commits into from
Jun 27, 2023
Merged

feat(GODT-2522): New DB layout #368

merged 3 commits into from
Jun 27, 2023

Conversation

LBeernaertProton
Copy link
Contributor

@LBeernaertProton LBeernaertProton commented Jun 26, 2023

Updates database layout to correct some shortcomings from the original layout generated by ent.

  • Avoid duplicated indices.
  • Dedicated messages to mailbox tables for auto UID generation via AUTOINCREMENT integer
  • Indices on Messages and Mailbox Flags
  • Query improvements

New database includes the following changes

* Indices and composite primary keys for message and mailbox flags.
* Every mailbox gets a dedicated table.
* UIDs are auto generated via incrementing integer
* Each mailbox messages entry also stores the remote ID of the message
  for faster queries
* New table to track which mailboxes a message is inserted in
Report Migration failed and invalid database as dedicated error types.
@LBeernaertProton LBeernaertProton changed the title Refactor/godt 2522 feat(GODT-2522): New DB layout Jun 26, 2023
@LBeernaertProton LBeernaertProton enabled auto-merge (rebase) June 27, 2023 06:59
@LBeernaertProton LBeernaertProton merged commit f43eebd into dev Jun 27, 2023
@LBeernaertProton LBeernaertProton deleted the refactor/GODT-2522 branch June 27, 2023 07:03
@github-actions
Copy link

github-actions bot commented Jul 7, 2023

🎉 This PR is included in version 0.17.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants