-
Notifications
You must be signed in to change notification settings - Fork 0
Open
0 / 10 of 1 issue completedLabels
featureNew feature or enhancementNew feature or enhancement
Description
The legacy database for Pryv.io is MongoDB, it was chosen for its ability to manage JSON structured data. With the current experience and usage, MongoDB is not providing any advantage compared to SQL in the scope of Pryv-HDS as the variable part of data (events’s content) is not indexed and not searchable.
The Stream structure challenge:
- The current implementation of the stream is hierarchical and the authorizations are mostly based on streams.
- This implies many “getChilds”, “getParents” computations prior to any access to recompose the access rights and find the “events” matching the requested filer and the access rights.
- Nested trees could help in setting the access rights and speed up the compilation of authorization REF
The database choice:
- PostgreSQL: widely used - scalable - free
- SQLite: offers per patient storage
Task list
- Finalize SQLite implementation for Streams, Access, Session
- Drop MongoDB and write Migration scirpts
- Implement PostgresQL
Sub-issues
Metadata
Metadata
Assignees
Labels
featureNew feature or enhancementNew feature or enhancement
Type
Projects
Status
In Progress