MongoDB--Introduction

Source: Internet
Author: User


MongoDB (MONGO) Introduction:

With the internet web2.0 The rise of the site. Traditional relational database in coping with web2.0 sites, especially the super-large and high-concurrency SNS type web2.0 pure dynamic site has become inadequate, exposing a lot of insurmountable problems, and non-relational database (NoSQL) because of its own characteristics have been very rapid development. And MongoDB is a kind of nosql.

MongoDB is a document-oriented Database management System , by C + + written. To address a number of real-world problems in the application development community. October 2007. MongoDB is developed by the 10gen team. Launched in February 2009.


Functional Features:

(1). Set-oriented

(2). Mode free

(3). Document type

(4). Support Dynamic Query

(5). Full index support, including internal objects

(6). Support for replication and recovery

(7). Use efficient binary data storage with large objects (such as video, etc.)

(8). Take the initiative to dispose of the fragments. To support the cloud-level expansion

(9). Support such as Python,haskell,c,c#,cpp. Js,perl. Java. Driver for Ruby language

(10). File storage format is Bson (a binary storage of JSON)

(11). Be able to access through the Internet


Applicable occasions:

(1). Site data: MongoDB is ideal for real-time insertions, updates and queries, and has the replication and high scalability required for Wang Zhenzhong real-time data storage.

(2). Cache: Because of high performance. Mongodb. Also suitable for the cache layer of the most information infrastructure, after the system restarts. The persistent cache layer built by MongoDB avoids overloading the underlying data source.

(3). Large, low-value data: It may be more expensive to store some data using a traditional relational database, and before that, very often, a program ape would choose traditional files for storage.

(4). Highly Scalable scenario: MongoDB is well suited for databases consisting of dozens of or hundreds of server servers.

The built-in support for the MapReduce engine is already included in the roadmap for MongoDB.

(5). Storage for objects and JSON data: MongoDB's Bson data format is ideal for storing and querying in document formats.


Download:

mongodb:http://www.mongodb.org/

I downloaded the msi of WINDOWS32.


Installation:

Next will be able to.


New:

Create a new Data folder and build the DB and log two subfolders in data.



Start:

Go to cmd, go to the current MongoDB Bin folder below, start "mongd" (not MONGO), change the DB path.


Then open the browser input localhost:27017, will appear:


Finally start Mongo.exe in Cmd, which appears:



Basic operation:

Insert


Find


Update (the first is a condition.) The second parameter is the result of a change, and if you want to change it in bulk, the fourth parameter is changed to TRUE):


Remove (non-revocable):

MongoDB--Introduction

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.