Skip to content
Melo Podcasts Home
CategoriesLanguagesFollowing

Episode notes

Join us for an insightful discussion with a MongoDB expert as we delve into the intricacies of data modeling and design reviews. With over a decade of experience, our guest shares valuable strategies for optimizing data models, avoiding common pitfalls, and ensuring successful implementations. Learn about the importance of aligning your data structure with application needs and discover practical design patterns that can enhance your MongoDB projects. Whether you're new to MongoDB or looking to refine your skills, this episode is packed with actionable insights to elevate your data modeling…

Transcript

Read the transcript · about 2,210 words, follows along as you listen

OK, hello to everybody at home. My name is Mark Smith. I'm just taking over for this slot and I'll be back along later for an interview. And I'm here with Daniel Kupal, which is fantastic. I was so pleased when your name came out of a hat for for my interview. Well, I'm happy to do that. It's so cool. So before we get talking like, why don't you say something about yourself? Like what's what's your role and what kind of stuff do you do day-to-day as when lobby beans?

I've been up probably before a while over 10 years. My current role right now is to take care of this strategy. Customers like the 50 biggest accounts, we go see them and we do events a bit like this one where we do a bunch of presentations and then we have a second day where we do one-on-one design reviews with them on their data models and it's pretty cool. We love doing those. I'm sure we can elaborate a little bit more on that topic. Do you want me to elaborate now on that or?

So well, I guess that was going to be my next question, talk about the design reviews and sort of data modeling side of things. So what? What exactly do you mean by designer view if somebody hasn't been? Yeah, it's a bit misleading because we, you know, you have a design, but really what we're trying to do is help you on your data model in their design. And then I think when you work with MongoDB, it's a little bit different than what we have done with other database, if you have our experience and these other technologies.

So we have to start thinking a little bit differently. We, we want to be sure that you're, you're going to be successful with your first models, especially in these large customers. We're very bullish. Now we, I'm sure like me, you believe Mongo DB is by far the best database out there. So actually make you successful in your first projects, you're going to come back for more. So we and that's what that's the intent, you know, And if someone asks how much that going to cost me it, it's a free service that we offer again. So we want to be sure things gonna work and you won't have any issues.

So generally people come in with their own design model that they have already or that they're considering putting into. That is a good question. Absolutely. We get the kind of a range of different scenarios. You can come at the beginning of your project and you won't see if Mongo DB would be going to be a good solution from the model. Can can I do that with Mongo DB right now? And we're going to be really honest with you. We if Mongo DB is not a good fit, we'll tell you.

We'd rather that you don't use Mongo DB if it's not. Good, that's. Right. I love having a bad experience and then that bad experience, you know, being transmitted to other people in the organization. But you, you may be at the, you know, at the middle of your project where you have a data model then, but you have question, things don't seem clear. You want the education, you may be further in your model where you're close to going to production and you want the validation that everything is OK. Obviously if we're going to tell you it's not, there's no. You need to ensure you have enough buffer time to change things, so do it a little bit earlier is to be better in that case.

Yeah, the opportunity to get clarity is really nice. I certainly remember going through that part of the journey myself where I just wasn't sure I had something seemed to work, but was it right? And it's very difficult to kind of to get that. Yeah, and it's, it's going to be like, you know, really useful with me and they find things. But the one thing to to also understand with MongoDB is if you have to do changes later, you can still do them without downtime. Now, if your model is right at the beginning, you're going to save a lot of effort doing right if you can. But the the requirements change and and be sure that if you have a successful project that's going to last for many years, things are going to change.

You know, the worker is going to change the number of preparations and or maybe even requirements, you know, things that you have to start adding to your model and. And we're going to point out how you can do some of the, you know, medication all the time. Yeah, without done time and. It's great. So I guess maybe an interesting question for the people at home, like what's the most common the design mistake you see when doing his line reviews? Yeah, the most common or like the the worst mistake.

Maybe both? Like give us both if they're not the same. The one we don't like is show me your ER diagram and then, you know, we see any tables and I'm like, OK, you know, and what's your first draft for your, you know, your collections, you know, diagram. And then we have 20 connections like, yeah, no, this is not working. Yeah, just. Relational modeling and. No, we do the other cuffs, we support the joints, but you don't want to do that on the most important and frequent operation.

So yeah, that was, that's for me the worst mistake. And this is where you need to change your mindset and get in, you know, thinking a little bit different and we can guide you at all the app. So I mean that really comes what's the solution to those companies. I get that there are many solutions depending on what their model kind of really is as opposed to how you would model that in a relational database. But what's the overall rule for what's the remodeling? Well, are you get there in terms of training or some like basic rules that if you think you know, if you apply those you'll be, I was thinking much better shape. Yeah, I was thinking the latter.

Yeah, You know, when I do my presentation is something I like to say is, you know what you're going to be using together in the application should be stored together in database. I think that's the main principle. There's a lot of the design rules that come out of that. When you look at some of the pattern, that's exactly what you're doing. You know, we're not embedding everything or we're not referencing. We're trying to be in between because these things are used together, but not all of them. Yeah, that'd be like the main thing that you you should apply, you should start thinking of.

I've heard whole rooms full of people like chant that like a man just kind of what you queries together that's. A good idea. I haven't done it, but I think I'm going to try that next time. I'm going to repeat it many times in this in the 30 minutes or 35. Minutes. So I think my first exposure to your work at Mongo DB was actually in a series of blog posts on design pads, which I think is something I recommend in pretty much every live stream I ever do.

Every time I give a talk, it's like you're using Mongo DB. Go and read. You have to go and read these posts so there's, I can't remember how many like 12 or 13 patterns. Yeah, there was 12 in the in the series, yeah. So what what would you say is like the most, the most fair? I don't know whether to go with interesting or kind of useful design patterns in there. What do you think most illustrous in there? Well, the one I use often in the reviews, the two I will say that come back the most often would be the extended reference and would be the computer pattern. And in very short description, the, you know, when you model with Mongo DB, you always have the choice between embedding or referencing entities.

But sometimes you're in a case where it's in between, let's say neither of those is the like perfect or right solution. So what should I do? And then the extended reference is a good pattern for that because basically what's going to tell you is to bring some embed a little bit, but not everything, but embed whatever you need to avoid doing those costly join on the important information. And if you need more information once in a while, we'll fetch it, but you're not going to fetch all the time.

So you're going to save a lot of resources. So that's the first one. The second one is in the case with what you're trying to model is either AUI or an application that send response to API calls. What's important in those cases is the latency you you want to build that answer as quickly as possible. And one mistake that you could be doing is having to do operation that are often the same and when you go a bit more to that all the time at the time that you're trying to provide the answer.

So if you add the leisure to spend a little bit more time at write time to prepare the data in a form that the UI will make only one read and everything for that page, then it's going to be much faster. Yeah. So and one of the sign also you get where when you should apply the computer pattern is you're going to have a high ratio of read operation versus the write operation. So if you have something like that, it means, let's say I have 1000 times more reads and writes in average, I'm computing the same thing 1000 times. So why not doing it at no at write time? Yeah, and relational databases don't generally give you the ability to do that pre computation and then store it back in the database cuz you're usually doing those joins and create.

Yeah, you can store it, but you'll store it sometimes in middle table. You still have to do a join. Mom would let you put it in the entity that you query all the time that the important query the important entity that you want to retrieve. Yeah. It's interesting to see that the sort of engineering sort of relearns this over time. Yeah, you need. To start thinking a little bit differentiating, you know, start thinking with these patterns, You, you get it after a while, you know, it's just a matter of practice.

And yeah. So if if somebody was trying to going to data modeling like they maybe been using Mongo DB for a little while, but they once get better at data model and specifically within Mongo DB like what's the best way would you say? We have all the reference, we have the blogs and I'm done and put my plug here. I did write a book that has all the patterns and it's a bit more. If I need to Google for it later. Yeah, and I can sign it. One of the best resource we have is the university courses.

So we do have a path for learning data modeling and there's association associated to it. But another plug is on Monday, October 14th, we're starting a new series of webinar on data modeling where we're going to display very short topic, 1015 minutes and then as the audience where they want to see in the next session. So it's going to be my whole team doing it like, you know, rotating, but we can also try to model live some of the problems that some of our audience going to bring.

So that should be fun. And basically what I'm saying is if you attend a design review session, you're going to be learning how we do it. You can see the question we're asking and basically repeating those question yourself on your own project. It's going to be a way to learn a lot about that modeling. Yeah, that sounds fantastic. And especially that length as well. It's almost like it's no excuse really not to not to sign up for that. So that I'm guessing those webinars, if I was to Google for that, it would come up with something in a MongoDB, a sign up page for that also, just you what? Oh, that's great.

So yeah, I kind of want to have questions. It's not very good, is it? Not very professional. This is my first thing to be that I've ever done. So this has been a great conversation. I really appreciate the time. Thank you. Very. Much thanks for having me because really good bye.

Transcript supplied by the publisher with the episode.

The MongoDB Podcast

by MongoDB · English · Tech & Science

Whether you're building your first app or scaling to millions of users, The MongoDB Podcast brings you the conversations worth having. Developers, founders, and technical leaders share how they architect systems, navigate hard decisions, and build with AI.

More from The MongoDB Podcast

  1. 23 Dec 2024 · 11 min

    EP. 255 Transforming the Insurance Industry with MongoDB: Insights on AI and Data Modernization

    In this episode, we sit down with industry experts to discuss how MongoDB is revolutionizing the insurance sector through data modernization and AI integration. Discover how MongoDB's document model simplifies data processing, enhances developer productivity, and reduces friction in application development. Learn about the exciting advancements in vector search and unstructured data handling that are set to transform customer experiences in insurance. Whether you're in the industry or just curious about the future of data management, this episode is packed with valuable insights and…

  2. 20 Dec 2024 · 11 min

    EP. 254 Enhancing Developer Experience with Atlas CLI and Docker Support

    In this episode, we explore the exciting advancements in MongoDB's Atlas CLI and Docker support with a leading expert in developer tools. Discover how these features streamline local development, enabling faster feedback loops and efficient testing environments. Learn about the integration with existing Docker tools, the benefits of running MongoDB locally, and the future enhancements on the horizon. Whether you're a developer looking to optimize your workflow or just curious about the latest in MongoDB, this episode is packed with valuable insights to elevate your development experience.

  3. 16 Dec 2024 · 11 min

    EP. 253 Understanding Queryable Encryption: Enhancing Data Security in MongoDB

    In this episode, we dive into the world of queryable encryption with our security specialist. Discover how this innovative feature protects sensitive data while allowing for secure querying without exposing any information. Learn about its applications in industries like banking, healthcare, and government, and how it ensures that even in the event of a data breach, your crown jewels remain safe. We also discuss the recent advancements, including range queries and future enhancements like full-text search. Whether you're a developer or a security professional, this episode provides valuable…

  4. 9 Dec 2024 · 11 min

    EP. 251 Discovering the Power of Atlas Search: Insights from a MongoDB Community Champion

    Join us in this engaging conversation with a MongoDB Community Champion as we explore the transformative capabilities of Atlas Search. With nearly a decade of experience using MongoDB at scale, our guest shares insights on managing billions of documents and achieving impressive performance benchmarks. Learn how Atlas Search simplifies data management by eliminating complex pipelines and enhancing efficiency. Whether you're a developer or a data enthusiast, this episode highlights the benefits of leveraging MongoDB's latest features for your projects. Don't miss out on these valuable insights!

  5. 6 Dec 2024 · 13 min

    EP. 250 The Future of Time Series Data: Game-Changing Improvements You Need to Know!

    Are you ready to revolutionize your approach to time series data? In this episode, we unveil the groundbreaking advancements in MongoDB's time series capabilities that are set to transform how developers manage and analyze high-volume data. Discover how the latest features enhance performance, streamline data ingestion, and simplify querying like never before. Whether you're a seasoned developer or just starting out, this episode is packed with insights that can elevate your projects to the next level. Don't miss out on the future of data management!

  6. S2 · E8 · 5 Jun 2026 · 56 min

    Modern AIOps:
What It Takes to Build Reliable AI Products

    Watch this episode as a video on Spotify! In this episode of the MongoDB Podcast, host Jesse Hall sits down with Karthik Kalyanamaran, Co-Founder and CTO of Langtrace AI, to discuss how engineering teams are building reliable AI products. Moving from traditional, deterministic software engineering to the non-deterministic world of Large Language Models requires an entirely new approach to debugging, testing, and monitoring. Karthik shares his journey from scaling observability infrastructure at Coinbase to creating Langtrace AI, an open-source LLM application observability platform built on…

  7. S2 · E7 · 28 Apr 2026 · 15 min

    How Rox Is Rebuilding the CRM for the AI Era on MongoDB

    Watch this episode in Video Format on Spotify . Are autonomous agents about to replace your traditional CRM? In this episode, Anaiya Raisinghani (Sr. Tech. Evangelist, AI Startups & Ventures at MongoDB) sits down with Ishan Mukherjee, Co-Founder and CEO of ROX. They dive under the hood of ROX, the world’s largest-scale revenue agent company that is building AI to handle the end-to-end revenue cycle autonomously.Ishan breaks down his founder journey—from Amazon Robotics to Apple's Knowledge Graph—and opens up about the technical realities of building AI agents today.What you’ll learn in this…

  8. S2 · E6 · 21 Apr 2026 · 45 min

    Capgemini’s GenPAL: Payments Data Monetization in Action with MongoDB

    Watch this episode as a video on Spotify ! In this episode, Luis Pazmino, Industry Principal for Financial Services at MongoDB, sits down with Saurabh Khandelwal from Capgemini to explore how financial institutions can transform payments data into a strategic revenue engine. The conversation dives into GenPAL , Capgemini’s solution powered by MongoDB’s modern data platform, and how it enables organizations to move beyond data storage toward real-time intelligence, AI-driven insights, and data monetisation . In this episode, we discuss: • Evolving Payments Landscape: Key shifts shaping data…

  9. S2 · E5 · 15 Apr 2026 · 47 min

    Why Python Devs Are Ditching Raw Drivers for Beanie

    Watch this episode in video format on Spotify! If you're building Python applications on MongoDB and still writing raw queries by hand, you're leaving a lot of developer productivity on the table. Beanie, the async-first ODM built on Pydantic, was created to fix exactly that — and this episode goes deep on how and why it works. You'll learn how Beanie maps Python objects to MongoDB documents without sacrificing atomicity or performance, why async-first design matters for modern Python stacks, how schema migrations actually work in a document database, and what the deprecation of Motor means…

  10. S2 · E4 · 31 Mar 2026 · 22 min

    From 7 Days to 2 Minutes: Automating Workflows with Knowledge Graphs

    Are you still relying on OCR for your enterprise AI? You're losing critical context. In this episode, Anaiya Raisinghani (Sr. Tech. Evangelist, AI Startups & Ventures at MongoDB) sits down with Adityavardhan Agrawal, Co-Founder and CEO of Morphik. They dive deep into how Morphik is helping developers and enterprises understand complex, unstructured data and automate high-leverage workflows. Adi breaks down the limitations of standard RAG pipelines and reveals why they turned to Vision Language Models (VLMs) to process complex documents like architectural floorplans. What you’ll learn in this…

Every episode of The MongoDB Podcast →

Take it with you

The Melo app keeps playing with the screen off, works in the car and on your watch, wakes you to your station, and browses the whole catalogue offline. Free, no ads, no account.

Get it on Google Play