The series version information of the MongoDB database is as follows:
2.5.0 development version (unstable Version)
2.4.4 latest stable product release
2.2 latest stable version 2.2.4
2.0 latest stable version 2.0.9
There are 2 parts to
Original: MongoDB cluster instance
It is estimated that I do not have so many servers for sharding, so the server cluster is similar to the master-slave server cluster, and the single database is not sharded to multiple machines.The following
Insert test data first:
For (VAR I = 1; I VaR num = I % 6;
DB. Test. insert ({_ ID: I, name: "User _" + I, age: num });
}
1. Common grouping query (http://www.my400800.cn)
DB. Test. Group ({key: {age: true}, initial: {num: 0}, $ reduce:
Installation files: Official Website http://www.mongodb.org/downloads
Select the file to download from the system.
1. decompress the file.
Decompress the compressed package, create a folder named mongodbon on the d Drive, and copy all the. exe
After the development machine (win7) is shut down abnormally, MongoDB cannot be started normally at the next startup, while mongodProgramWill keep trying to start MongoDB
In this way, the CPU is abnormal and busy. After checking for half a day, it
I had nothing to worry about in the evening and studied MongoDB, which is very popular recently. There is only one feeling: "free ".
Let's skip this. Let MongoDB run under win7 64 first:
1. MongoDB Homepage
Http://www.mongodb.org/
2.
Because MongoDB's document structure is in bjson format (bjson Full name: Binary JSON), bjson itself supports storing binary data, therefore, the binary data of the file can be directly stored in the document structure of MongoDB. However, because
Original article address:
Http://www.cnblogs.com/adaiye/archive/2011/10/25/WPF-MongoDB-Fan-Thread.html
Presumably, as children's shoes know, when performing time-consuming operations (such as crawling and analyzing website data here), if
PHP // Initialize gridfs $ Conn = New Mongo (); // Connect to MongoDB $ DB = $ Conn -> Photos; // Select Database $ Grid = $ DB -> Getgridfs (); // You can retrieve gridfs objects. // There are three ways to store files. // The first method
After MongoDB is started,ProgramThe corresponding parameters, lock files left over from the last time, log files, and so on will be processed accordingly. At the same time, some service threads supporting other parts of the operation will be enabled.
This was originally posted to Kristina chodorow's blog, snail in a turtleneck
I participated in writing the journaling section in the definitive guide, but I realized that many of the implementation details were not paid enough attention to, so I
Introduction
MongoDB is a distributed file storage-based database. It is designed to provide scalable, high-performance data storage solutions for Web applications.
It is a product between relational databases and non-relational databases. It
Mongodump can be used for database or table-level backup of MongoDB. The following is an example:
Back up the my_mongodb database [root @ localhost bin] #./mongodump-D my_mongodb
Connected to: 127.0.0.1
Database: my_mongodb to
Reprinted from http://www.cnblogs.com/spnt/
After the MongoDB replica set is configured, maintenance is indispensable and the maintenance content is not much, mainly because of the current status and Addition and deletion of nodes.
Before
MongoDB mobile chunks scriptAs the data volume increases, you may need to add shards. After adding shards, you need to move some of the data to the new shards. Originally, MongoDB supports automatic balancing (balancer, that is, automatically
This section describes how to perform advanced queries on MongoDB in the console, including the tutorial content, hands-on experience with me labs, and understanding these rules. For other languages (Java, ruby, Python, etc.) is of great help in
Document directory
1. Preparation Information Processing (each node can be the same or different)
2. Start the mongod instance
3. Configure and initialize the replica set
4. view the replica set status
1. read/write splitting
2. automatic
1. Create a database:
> Use tutorialSwitched to DB tutorial
Here, you may have questions about how to use the tutorial database we have not created?
In fact, databases and collections are only created when document data is inserted for the first
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