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 3931950
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:24:11+00:00 2026-05-19T23:24:11+00:00

New to document-oriented database concepts and have a few high-level questions related to orders

  • 0

New to document-oriented database concepts and have a few high-level questions related to orders and order processing.

How does one capture an order in this world? Would an order just be a new document in an Orders collection? Would order_item relate back to a product listed in another document? Or is it assumed that order_item would be copied and inserted into the order document and thus, perhaps, difficult to report the total of product sold over time?

How does one work around lack of transactions and maintain integrity

Sorry, very new to me though eager to understand…it sounds very appealing to encapsulate all these ‘things’ for sale as “objects” and move them around as such between server & clients, etc…if it’s indeed plausible. Just need some help conceptualizing big picture dos and don’ts.

  • 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-19T23:24:11+00:00Added an answer on May 19, 2026 at 11:24 pm

    How does one capture an order in this world? Would an order just be a new document in an Orders collection?

    Yes. That’s the way these databases work.

    Would order_item relate back to a product listed in another document?

    It could. Depends on what you’re doing.

    Or is it assumed that order_item would be copied and inserted into the order document

    Also possible. This works well for historical analysis and data warehousing.

    and thus, perhaps, difficult to report the total of product sold over time?

    It’s always hard to report total product sold over time.

    Today, product “23SKIDOO” is a 23l, open-valved, framistat with double widgets.

    Last year, before the recall, the same product was a 23l, closed-valved framistat with only a single widget.

    In a previous year, the same product was actually 22.5l.

    Are these the “same” product? Marketing calls them all “23SKIDOO”. But there are differences.

    A single Product table doesn’t resolve this correctly. What folks then do is invent product lines and product families so they can introduce the “23SKIDOO-B” and “23SKIDOO-PLUS” products which are all part of the “23SKIDOO” family.

    Product lines and product families and other more fanciful groupings are workarounds and hacks to magically make unrelated products report together and provide a “total product sold over time” even though the products are clearly different.

    Copying the product into the order (while it seems wasteful) can preserve more historical fidelity than many of the commonly-used workarounds.

    How does one work around lack of transactions and maintain integrity?

    MongoDB has locks. http://www.mongodb.org/display/DOCS/How+does+concurrency+work.

    It’s not clear what you mean by lacking transactions.

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

Sidebar

Related Questions

I am new to document oriented databases. My question is why do I have
I have an XML document: var xml:XML = new XML(<rootNode> <head> <meta name=template content=Default
I have the following XML document: <projects> <project> <name>Shockwave</name> <language>Ruby</language> <owner>Brian May</owner> <state>New</state> <startDate>31/10/2008
As I understand it, you can enter any non-structured information into a document-oriented database.
Make a new AS3 Document in Flash, paste in the following code and run
When loading XML into an XmlDocument, i.e. XmlDocument document = new XmlDocument(); document.LoadXml(xmlData); is
When the New menu item on a Document Library expands the default seems to
I am about to start a new project and would like to document its
I am starting to put together a system architecture document for a new project
I've looked at MongoDB/norm (but want a general document-oriented store answer). It seems really

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.