MongoDB Learning Notes (a) Basic article

Source: Internet
Author: User

1.MongoDB Features

For collection storage, storing data for object types is convenient

Mode free, no need to define any schema (Schma)

Dynamic Query

Full index, containing internal objects

Easy to copy and fail-back

Efficient binary data storage

Support for C # platform drivers

2. Architecture

A single server can create multiple server instances and databases (one instance is recommended for server machines a day),

Database: A series of disk-related physical files (data files, log files, and so on) in MongoDB.

Data Logical Structure: Document (Documnet) collection (collection) database.

Doucumnet: Similar to Row Records in a relational database

Collection: With table types in the database

One MongoDB instance supports multiple databases

Data storage structure:

Each MongoDB database contains an. ns file and multiple data files, and as the table data increases, each reallocation of the data file is twice times the size of the previous data file, with a maximum of 2G per data file.

3. Basic operation

Conditional query:

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.