Skip to content

Overhaul persistence #1525

@josecelano

Description

@josecelano

We should review the database layer.

Context

Problem

Proposal

In the middle term (before adding more tables), we should:

  • Research to confirm if the current crate is the best one. Change it if it's not.
  • Add migrations.
  • Split the database trait into many different traits per context. Otherwise, it will end up having too many methods.
    I think I will implement the metrics persistence with the current drivers because I want to finish the[+] stats overhaul,[/+][-] stats overhaul,[/-] but we should consider implementing this epic before continuing to add more tables (complexity) to the current persistence layer, especially if we decide to change it.

cc @da2ce7

The work is split into sequential sub-issues so each step can be independently reviewed and merged. See the implementation plan in the comments below.

Metadata

Metadata

Assignees

Labels

EPICContains several subissues

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions