Transitioning from MySQL to MongoDB

Click for: original source

This article will not discuss the different types of database systems, like RDBMS and so on. We will, however, focus on two concepts: SQL Databases and NoSQL databases. By @peteradeojo.

Tha article contains information on:

  • NoSQL databases
  • MongoDB
  • Creating/inserting data
  • Retrieving multiple records
  • Selecting one record - by ID and by attribute
  • Updating records
  • Deleting records

MongoDB is the most popular solution for developers looking to benefit from features like scalability and speed. Unlike MySQL, MongoDB returns data as a well-organized, JSON document with helper methods that help to execute more complex queries on the data.

We’ve taken a look at the common operations that can be performed by querying a SQL database and the ways they can be implemented in MongoDB using mongoose. Don’t stop there. There are many other things we could discuss such as implementing the LIKE query by passing a regex as the find condition and implementing JOIN queries with the populate method. You will also get query examples in the article. Good read!

[Read More]

Tags nosql database software mysql devops