MongoDB Applied Design Patterns

Just started reading the O’Reilly book by Rick Copeland
Image

I’m hoping to get some ideas for my project from chapter4: ‘Operational Intelligence’, Chapter6: ‘CMSs’ & Chapter 8: ‘Social Networking’.

By page 12 I had learned a new word ARITY: the number of arguments that a function can take.

Chapter one considers the pros and cons of referencing vs embedding. There’s some further info here and here.

The chapter concludes stating “Schema design in MongoDB tends to be more of an art than science. 

The two largest benefits to embedding subdocs are data locality within a document and the ability of MongoDB to make atomic updates to a document.

Weighing against these benefits is a reduction in flexibility as you have pre-joined your documents, as well as potential for problems if you have a high-arity relationship

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s