MongoDB Summary (ii): Conceptual analysis

Source: Internet
Author: User

The basic concept in MongoDB is a document, a collection, a database

With an example, some concepts in MONGO are more visually understood:

Show DBS shows a list of all data

DB is the display of the current database object or collection

Use test to connect to a specified database

Some database names are reserved and can be accessed directly from these databases with special effects.
Admin

From the perspective of permissions, this is the "root" database. If you add a user to this database, the user automatically inherits permissions from all databases. Some specific server-side commands can only be run from this database, such as listing all databases or shutting down the server.
Local

This data is never copied and can be used to store any collection that is limited to a local single server
Config

When MONGO is used for sharding settings, the Config database is used internally to hold information about the Shard.

The following is a list of terms that RDBMS and MongoDB correspond to:

Areas of demand attention:

MongoDB is case-sensitive;

Keys that begin with the underscore "_" are reserved (not strictly required);

and $ have special meaning and can only be used in certain circumstances;

The collection name cannot begin with system.

MongoDB Data type:

MongoDB Summary (ii): Conceptual analysis

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.