Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6582145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:14:39+00:00 2026-05-25T16:14:39+00:00

I am new to developing with mongodb. This may be a noobish question but

  • 0

I am new to developing with mongodb. This may be a noobish question but I was wondering what the benefit in creating a 1:1 embedding is in mongodb? Why is useful over attributes which hold 1:1 embedding’s data?

In the case of 1:n embedding it is good to organize an undefined number of objects under a document.

All referenced relationships are good for queries to and from documents.

What additional functionality do 1:1 embeddings give?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:14:40+00:00Added an answer on May 25, 2026 at 4:14 pm

    Are you thinking about the following pattern?

    {
      name: {
        first: 'John',
        second: 'James',
        last: 'Jones'
      },
      age: 20,
      address: {
        street: '2nd',
        city: 'Warsaw'
      }
    }
    

    As you can obviously see, the reasons are pragmatic – grouping related fields (like name and address) together is more readable compared to a table with long flat list of columns. Also you avoid excessively long identifiers by using dot-notation.

    Obviously there is a performance difference between these approaches. If nested objects are huge and you rarely use them, it will be easier to split the document (however you can fetch only part of the document). On the other hand if whole document is used most of the time, it will be cheaper to fetch it once (eagerly) instead of running multiple database queries.

    Also MongoDB is not transactional per se, however modifications of a single document are atomic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I feel like a moron asking this, but since I'm a new to developing,
I am new to developing for android. I have a question regarding some best
I'm new to developing apps in Android. We are currently creating a robot using
I'm pretty new to developing Android applications but I am attempting to display the
I am fairly new to developing C/C++ code in MSVS but one of the
I am new to developing on the iPhone so am sorry if this is
I'm configuring a new Developing Server that came with Windows 7 64bits. It must
I am new to developing for Office Forms Server / MOSS 2007. I have
When working on developing new software i normally get stuck with the redundancy vs
When we are developing new sites or testing changes in new ones that involve

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.