Building Data-Driven Web Apps with Flask and SQLAlchemy Transcripts
Chapter: MongoDB edition
Lecture: Introduction to the NoSQL version

Login or purchase this course to watch this video and the rest of the course contents.
0:00 We've built our app. We've deployed it. It's basically done. But let's take one more look. Let's try one more version of our application.
0:09 So we're going to rebuild our PyPI demo app this time with a NoSQL based document database called MongoDB.
0:18 It's the most popular of the document databases but the idea is it'll be pretty similar across the board. So the first question is
0:25 why are we doing this? Why do we have this MongoDB version? Well, there's two basic reasons. The first reason is many people prefer document databases
0:33 over relational databases. The whole thing about migrations whole lot less of that when you're doing document databases
0:39 and things like that. The running of it is easier a lot of times. And also the performance can be better. So that's one reason.
0:46 People might just want a MongoDB version. The other reason though is we've talked a lot about some amazing design patters.
0:53 We've organized our code in really nice ways. We have these data access services that group say the user queries and data processing,
1:01 the package processing, and we have our view models. So what I'd like to show you the main take away here is the power
1:09 of these design patters that we've employed. What you'll see is we'll be able to change a very few set of files
1:16 and actually completely switch not just the database but entirely the style of underlying data all together. So, it's going to be really quite easy
1:26 and quite awesome. If you're not interested in MongoDB feel free to skip to the end. Skip over this chapter
1:31 but if you are or you want to see the power of these design patters to allow us to evolve our application as we build it
1:37 so we don't have to design it all perfectly up front 'cause you never do, you'll get to see that in action during this chapter.


Talk Python's Mastodon Michael Kennedy's Mastodon