Migrate database from SQLite to PostgreSQL #148
Labels
backend
Deals with the FastAPI and web-scraping backend
enhancement
Adds value to a previous feature
waiting
Waiting for something to happen
Milestone
Context
SQLite is good for a single-file database solution; it won't scale well for our needs since we'll be having multiple webscrapers working at once and we'll need this database to be hosted on some URL somewhere. PostgreSQL is another SQL-based database solution that handles concurrency and scales better than SQLite. We were using SQLAlchemy as a database abstraction layer which allows us to write SQLAlchemy code without having to worry about the underlying implementation (e.g. SQLite, PostgreSQL, etc.).
TODO
backend/app/database/database.py
for the migration entry point and some additional informationpsycopg2==2.9.8
to therequirements.txt
file and runningpip3 install -r requirements.txt
Notes
You don't need to set up a remote PostgreSQL instance. A local one will work for now.
The text was updated successfully, but these errors were encountered: