MongoDB for Developers with Python Transcripts
Chapter: Modeling and document design
Lecture: More document patterns
Login or
purchase this course
to watch this video and the rest of the course contents.
0:01
Let's close out this chapter with a few more sources you can get some patterns here;
0:06
so recently I had Rick Copeland who is in the MongoDB masters program along with myself, and I had him on the podcast on episode 109
0:15
to talk about applied MongoDB design patterns. So this concept of embedding and modeling and data duplication and all these things,
0:24
certainly we talked about on the podcast, and he talks about in his book, but he has a lot of really interesting use cases
0:29
and actually some performance trade-offs, using some of the atomic update operators, one versus the other or not at all,
0:38
just to see how that might work out. So he's got a bunch of use cases and you might flip through his book
0:44
once you really get into things and say does one of the patterns he talks about really closely match what I'm doing— you might get a huge jumpstart
0:51
on modeling your data with actual performance numbers behind it. So check out the podcast, it's free
0:57
and check out his book if you find it to be helpful. And final thought on modeling with these document databases is
1:03
there is no perfect answer, it's always this tension of I could model it this way and this part of my app gets better,
1:10
I could model it another way, and that part is not quite as good, but another part becomes more flexible or becomes better,
1:15
so it's really about balancing the trade-offs, not right versus wrong.