Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Use Relational Databases and SQL to Understand MongoDB

DZone's Guide to

How to Use Relational Databases and SQL to Understand MongoDB

· Java Zone
Free Resource

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

Developers familiar with relational databases and SQL but interested in moving into the NoSQL world - MongoDB, in particular - might find this recent article from Ashish Trivedi at Tuts+ to be helpful. It explores the structure and use of MongoDB in terms of relational databases, making comparisons and pointing out similarities in order to draw on existing RDBMS knowledge. For example, Trivedi makes the following connections:

  • RDBMS tables map to MongoDB collections
  • RDBMS rows map to MongoDB documents
  • RDBMS columns map to MongoDB fields
  • RDBMS relationships map to linking and embedding documents in MongoDB

Trivedi goes on to compare SQL queries to MongoDB queries, presenting code samples of things like SELECT and UPDATE statements side-by-side with their MongoDB equivalents. Overall, it's a relatively basic look at both SQL and MongoDB - mostly a way to get started with something entirely new - but well-organized and very helpful in its reliance upon more common RDBMS knowledge to understand MongoDB. Check out the full article for more details.

Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}