-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify FeedLog table design #83
Comments
Thanks for opening your first issue in this project! If you haven't already, you can join our slack and join the #mobility-database channel to meet our awesome community. Come say hi 👋! |
+1 to this simplification, particularly since we no longer anticipate as frequent updates to feed metadata when we stop switching URLs. My only thought is that |
+1 Also +1 for |
@cka-y Since we're still storing the historical versions of the feed itself (not its metadata) in |
@aronza After some discussion and MobilityData/mobility-database-catalogs#291, we no longer see a need for a feedlog or record. Plan currently is to
Users will get historical information on the dataset level, not about the feed. Data Clinic is welcome to take this on! |
Describe the problem
In current database design, there is
Feed
table andFeedLog
table with all the same columns exceptFeedLog
has an extrahistorical_record_time
column. If this is designed to track active and historical states of feeds, would it be easier to maintain only one feed table withrecord_time
column?This way the API can still serve the latest feeds when requested by querying for the feed's with latest
record_time
column perstable_id
. Also maintaining these table schemas and inserting new data to them would be simpler.I think we already have these table schemas diverged where
Feed
was addedfeed_contact_email
at https://github.com/MobilityData/mobility-feed-api/blob/main/liquibase/changes/feat_15.sql but FeedLog doesn't have this column.Proposed solution
Add
record_time
column toFeed
table and removeFeedLog
tableAlternatives you've considered
Existing schema
Additional context
This is not a blocker in my view but a nice discussion to have before going to production. If team feels there is use case for
FeedLog
that we can't handle easily withFeed
table alone, I would be happy to keep the existing design.The text was updated successfully, but these errors were encountered: