MongoDB is a collection-oriented document database, unlike relational databases where tables, columns, rows, and MongoDB databases are composed of a series of documents. Here to introduce the concept of MongoDB and simple operation.
1, the
MongoDB Introduction
MongoDB is a database based on distributed file storage. Written by the C + + language. Designed to provide scalable, high-performance data storage solutions for WEB applications.
MongoDB is a product between relational
Each MongoDB library can have many users, only to open the user and have access to the library operation permissions to read and write operations, MONGODB security mechanism is: 1, first to establish a super user, can be authenticated by the super
JsonJSON is a simple way to represent data, it is easy to understand, easy to parse, easy to remember. But on the other hand, JSON has some limitations because there are only a few types of data such as NULL, Boolean, number, string, array, and
MongoDB Linux performance optimization: https://docs.mongodb.com/manual/administration/production-notes/#allocate-sufficient-ram-and-cpuPerformance optimization:1. Close the Atime storage volume that contains the database files.2, according to the
First, prefaceMongoDB is also an alternative platform for projects that need to be manipulated in Java and C + +. Not much else to say, several key requirements:1 collection columns have int, long and bindata (also known as binary array) types;2
Aggregation refers to the various operations that can handle batch records and return results. MongoDB provides rich aggregation operations for performing calculation operations on datasets. Performing aggregation operations on an Mongod instance
First, data backup operationsIn real-world scenarios, it is often necessary to back up business data for disaster preparedness, and MongoDB provides backup and recovery capabilities, namely the Mongodump.exe and Mongorestore.exe files in the
Fixed CollectionThe MongoDB fixed set (Capped collections) is a well-performing and fixed-size set, and for a fixed size we can imagine it to be like a ring queue , and when the set space is exhausted, the inserted element will overwrite The most
Recent interest in MongoDB, most of the online search is 2.X version, because 2.X and 3.X difference is very large, so their own reference official website, wrote this series. MongoDB knowledge is still a lot of, this series will continue to update,
BackgroundIn distributed systems, we have multiple web apps that may be deployed on separate physical servers and have their own log output. When production problems come, it is often necessary to go to each log file to look for possible exceptions,
1: Start three instances- /Home/mongodb/db27017/-/home/MongoDB /db27018/-/home/mongodb/db27019 /mongodb27019.confThe configuration file is as follows:Verbose=true #日志信息vvvv=true #日志的级别logpath=/Home/Mongodb/db27019/Log/Mongodb.Log#日志文件logappend=true #
A Mongodb1. One of the most popular MongoDB in the current NoSQL database is a high-performance, open-source, modeless document-based database that installs MongoDB for testingFirst time Installation1. Installing Mongodb-win32-i386-3.2.9-signed.msi2.
Sharding (increased server, horizontal scaling) is the way MongoDB expands, with shards that can add more machines to cope with increasing load and data without impacting applications.IntroductionSharding (sharding) refers to the process of
The installation code is as follows:Tar-zxf mongodb-linux-x86_64-2.6.5.tgzMusic mongodb-linux-x86_64-2.6.5/usr/local/Cd/usr/localMusic mongodb-linux-x86_64-2.6.5 mongodb // Create a data directoryMkdir/data2/mongodbData// Create a log file (note
1. Install mongodbLet's skip this step. Let's go to linux/47932.htm"> Centos to install MongoDB.2. Create a databaseUse ttIn this way, a database is created. If you leave the database without any operations, the database will be deleted by the
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