Thursday, May 3, 2018

Knowing MongoDB Database


MongoDB derived from the word humongous, is a new type of database that does not use the concept of tables, schema, SQL or rows. MongoDB does not have a transaction, join, foreign key, or other features that often make a headache. In short, MongoDB is a different database than the usual database we use, especially for those of us who are familiar with the Relational Database Management System (RDBMS).

Basic Principles of MongoDB

The basic principle adopted by MongoDB is "one size does not fit all". For a long time relational databases have been used to store different types of data. It does not matter whether the stored data matches the relational model or not. Examples of relational databases such as MySQL, PostgreSQL, Oracle and others. One reason is the ease of storing and reading data from a database rather than having to write to a file system.

The MongoDB team wants to create a database that works with documents instead of lines or rows. Database is really fast and easy to use. In order to do this, the MongoDB team had to abandon the various database features in general, where one risk made MongoDB not the ideal choice for a given situation. For example there is no transaction MongoDB, so you will not be able to use it to create an accounting application.

Although MongoDB can not be the solution to all your problems, you will understand that there are some problems that MongoDB can solve perfectly. For example like analytics like Google Analytic data as well as complex data such as blog posts, and comments.

Another concept of MongoDB is that there should be more than one copy of the database. If a database fails, it will easily be restored from another server. Since MongoDB aims to run as fast as possible, MongoDB uses several shortcuts, so it will be difficult to fix in case of a crash.

Up here you have known MongoDB. That MongoDB is not intended for everyone. But for those of you who decide to use it, MongoDB presents a rich document oriented database optimized for speed and scalability. MongoDB can also run anywhere, as presented on the MongoDB download website that provides for Linux, Mac OS and Windows.

Sample MongoDB Document Database

A record in MongoDB is a document, a data structure composed of fields and value pairs. The MongoDB document is similar to the JSON object. The value of a field can contain other documents, arrays, or documents.
NEXT ARTICLE Next Post
PREVIOUS ARTICLE Previous Post
NEXT ARTICLE Next Post
PREVIOUS ARTICLE Previous Post