This repository was archived by the owner on Sep 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate SQLX to local/dev only #65
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Currently, sqlx
and timescaledb
is used for the db backend for the project. However, due to complexities with hosting a timescaledb
instance, the time has probably come to migrate to using Amazon Timestream. This would remove the need to sqlx
in production.
Thus, sqlx
and the timescaledb
docker setup can probably be migrated to only be used locally, which means that the dependencies can be moved to dev
dependencies.
This will require some investigation into how to prevent schema drift (local timescaledb
vs timestream
) and any other considerations. Additionally, considerations around user auth, sensor config storage, etc., should be considered.
One possible solution could be to:
- Keep the postgres instance, but remove the need for
timescaledb
extension. The postgres instance can then still be used for user/sensor data storage - Completely remove the postgres instance, and use AWS-native solutions for sensor config storage, user auth, etc.
Task List
- Move relevant dependencies to be strictly
dev
dependencies - Investigate migration requirements
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Projects
Status
Planned
Status
Planned