Building Data-Driven Web Apps with Pyramid and SQLAlchemy Transcripts
Chapter: MongoDB edition
Lecture: Final cleanup

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Let me just make a one final comment here on cleanup before we finish with this whole chapter. We won't write anymore code.
0:07 Just think about some ideas here. Now that we've migrated all of our data over to MongoDB if we're truly committed to moving away
0:16 from our relational database and over to Mongo or whatever direction you're going. It doesn't really matter. The same thinking applies.
0:23 If you're fully committed to being over into that new space we've moved our data well, the next step would be to go over here
0:31 hit delete, just wipe away all those files. Commit that to GitHub. Maybe tag it or somehow like create some kind of branch
0:39 or do something to make a really clear spot that you can go back and find it. But then remove it. Don't keep these things hanging around
0:47 because you'll have to somehow maintain them. You know, the way it works when you do the scan for the routes is it's going to read through all these
0:55 and then these are going to see things like the top import SQLAlchemy. You'll still have to install those dependencies
1:01 even though you have no intention of using them. So wipe that away, delete that file 'cause same reason that I just described.
1:09 It's going to have the SQLAlchemy dependencies and it's going to cause trouble. We're not doing that 'cause I want to leave it
1:14 in this state where you can come to this look at this migration. You can take the data that is being shipped through GitHub
1:23 here and then run this migrate to Mongo to actually get the data into MongoDB because I'm not shipping the MongoDB database separately.
1:31 It's not so easy. So anyway, I think I'm going to keep it for your demo for your example to be around.
1:38 However, in practice, once you've made this transformation it's time to, you know, put a save point in GitHub
1:47 wave goodby to whatever the other data model was and move on. If you need it back, there's always source control. You can get it back.


Talk Python's Mastodon Michael Kennedy's Mastodon