hackforla / 311-data

Empowering Neighborhood Associations to improve the analysis of their initiatives using 311 data
https://hackforla.github.io/311-data/
GNU General Public License v3.0
62 stars 64 forks source link

Switch db dialect to mysql #197

Closed sellnat77 closed 4 years ago

sellnat77 commented 4 years ago

Overview

In order to utilize free resources we are switching from postgres to mysql. This task should replace the dialect of sqlalchemy to mysql. This change will include updates to the docker-compose file to support all other collaborators

Action Items

Updating the dialect in sqlalchemy is supposed to be painless, especially since we are going between relational databases. But if there are bugs that arise that are fairly complex, feel free to create a bug ticket to track work done.

Resources/Instructions

Docs of sqlalchemy dialects -> https://docs.sqlalchemy.org/en/13/dialects/

ExperimentsInHonesty commented 4 years ago

@rgao please update with

  1. Progress
  2. Blocks
  3. Availability
  4. ETA
rgao commented 4 years ago

Changed connection string to mysql dialect on local machine

Currently testing ingestion on local; running into authentication issues.

ETA: 1/29

ExperimentsInHonesty commented 4 years ago

@rgao it looks like your eta has passed. please update with

  1. Progress
  2. Blocks
  3. Availability
  4. ETA
johnr54321 commented 4 years ago

rgao updated dialects to mysql last week. Goal is to update docker-compose.yml by 2/11.

sellnat77 commented 4 years ago

We decided on postgres...but thanks to the effort on this ticket, our system is robust enough to migrate to other dialects with ease :+1: