LACMTA / metro-api-v2

Docs: https://lacmta.github.io/metro-api-v2/ Dev: https://dev-metro-api-v2.ofhq3vd1r7une.us-west-2.cs.amazonlightsail.com/docs
https://lacmta.github.io/metro-api-v2/
0 stars 3 forks source link

Store Swiftly data in a database for querying #24

Closed matikin9 closed 2 years ago

matikin9 commented 2 years ago

MBTA is:

We've set up a Postgres DB already, but we may want to go with SQLite and do in-memory querying. SQLite is a file-based DB that we can connect to and run queries on. Data is saved and persistent.

On the Lightsail container service that currently runs our API, we would modify the scheduled process to pull data from Swiftly and write it to a local SQLite DB file on the container. The SQLite file would then be accessed when needed.

albertkun commented 2 years ago

Closed because... postgresql rocks!!!!!

edit: Also #33 and v2.1.0 addresses this!