MongoDB-NoSQL, nosql

Source: Internet
Author: User

MongoDB-NoSQL, nosql

Comparison between mongoDB and SQL:

The biggest difference from a common database is structured and unstructured.

NoSQL:

Generally, it refers to non-relational databases. Compared with relational databases, in fact, its previous evolution is a data organization combined from a two-dimensional table and its relationships. A two-dimensional table is actually the data structure we have learned. in a relational database, the logical structure stored in the database is based on a two-dimensional table, so it is very close to the logic world, it is easy to accept.

Bottlenecks of relational databases:

High concurrency read/write requirements; Efficient Reading and Writing of massive data; high scalability and availability;

Today, learning NoSQL is imminent. Compared with relational databases, we have changed the query method using SQL statements in the past (for more information, see the next article)

Summary of NoSQL features:

  • Massive Data Processing;
  • Solved the performance bottleneck;
  • Easy to operate;
  • Free mode;
  • Easy to expand ;......


MongoDB installation and configuration:

Download MongoDB (: http://www.mongodb.org/downloads), directly download the version you need can;

Create a MongoDB program storage directory;

Create a data file storage directory. For example, create an mdb on disk D;

Start the MongoDB service:

There are two main steps:

Step 1: Find the path for saving mongod.exe

Step 2: Find the path to store the data file

The running effect is as follows:


Another result of successful running is that the data file storage location has been created, for example:

In this way, a local.0 data storage can be built and stored directly using C # or various languages.

MongoDB application scenarios:

In the examination system, MongoDB is mainly used to store English audio and student portraits. In fact, in addition to a large amount of data, the entire process also involves cache problems.

MongoDB storage can meet the following requirements:

  • Store massive data;
  • Able to withstand high concurrency;
  • You can use inexpensive storage;
  • If the data volume is moderate, the stability of a single server can directly meet our needs.


Conclusion: Learning from MongoDB is just an iceberg, but it is also a good start. Continue!


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.