Data Modeling in MongoDB

noun

say it: “DAY-tuh MOD-ul-ing in MONG-goh-DEE-BEE” /ˈdeɪtə ˈmɑdəlɪŋ ɪn ˈmɑŋɡoʊˌdiˌbi/

Deciding how to shape documents, what to put inside a document and what to keep separate, based on how the app reads its data.

What is Data Modeling in MongoDB?

Data modeling in MongoDB starts from how the app reads data: embed what is read together, reference what grows without limit or is shared, and avoid huge arrays.

In a sentence

  • “Data modeling in MongoDB starts from the pages the app shows, not from tables.”
  • “Good data modeling in MongoDB put each order's lines inside the order.”

Level: Journeyman · More MongoDB terms at this level

Updated