MongoDB with Async Python Transcripts
Chapter: Deployment
Lecture: Final Comments on Speed

Login or purchase this course to watch this video and the rest of the course contents.
0:00 One final thing I want to just add here. I didn't highlight it before when I first ran this Remember, this is the speedy CLI that we're using
0:10 So when you see these numbers like oh it took over a second to get the summary or if we say give us the most recently updated packages and that took
0:19 800 milliseconds Remember what we're doing here. This was a performance testing version where we're running these commands a hundred times each
0:29 And then we're saying how long that took. So for example, for this one, that's 8.7 milliseconds in our production infrastructure
0:38 to go from one server over the encrypted network to the other and back, right? So don't let these numbers here scare you.
0:47 These are really pretty decent high-speed numbers for just a couple of milliseconds to do these different queries here.
0:55 I guess just go and run the search one more time here really quick to get a package took that long, but again, divided by 101
1:03 millisecond. That was pretty awesome. If we go and ask for a certain version, that also took about one millisecond. That one searching remember quarter
1:12 million packages interspersed embedded within 5000. Sorry, quarter million vert releases within 5000 packages. So it's, it's working great. It's super
1:23 fast. Alright, that's it for the deployment. It takes a little bit of getting used to to put all these pieces together, but once you get it set up
1:32 and you have a script to remind you these are the steps in this order, it's honestly pretty easy to do. So whether you do self-hosting
1:39 or you do some kind of cloud as a service, a MongoDB as a service type thing, it's one of these two steps and it's not too hard.
1:47 So have fun, good luck, and follow along. Be safe out there.


Talk Python's Mastodon Michael Kennedy's Mastodon