MySQL Vs MongoDB

MySQL-relational database in general uses the JOIN operation. This allows you to perform queries across multiple tables.

MongoDB does not support joins but it does multi-dimensional data types such as arrays and even other documents. Placing one document inside another is referred to as embedding.

For example : If you want to create a blog using MySQL, you would have a table for posts and a table for comments. In MongoDB you might have a single collection of posts and an array of comments within each post.

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