Reprinted from http://www.cnblogs.com/spnt/
The sharding maintenance of MongoDB is also about the several commands, which are relatively simple. We will use the example for demonstration.
1. List all shard servers
Note that you need to
There are three types of replica set nodes:
Standard: a regular node that stores a complete copy of data and participates in voting. It may become a primary node;
Passive: stores complete copies of data and participates in voting. It
I. Advantages and Disadvantages of MongoDB:
1. Advantages:
A. Superior performance:
Thanks to the advantages of the design and the compilation in C ++, the performance is superior. Test Data parameters :.
B. JSON operation and storage:
1. When you call ensureindex to create an index, you must ensure that no index has been created on the corresponding key before. Otherwise, if the statement is not executed, the index will retain the old version.
Example: we can create a common
Http://www.mongodb.org/display/DOCS/Quickstart Author: zhanghq Source: blog Park Release Date: Read: 1346 Original article links [favorites]
We are about to start the simplest MongoDB connection to access data. Before that, you have installed
Recently, the MongoDB nosql database was used in the log service design (I don't know the MongoDB point) because it is used for pure log storage, and the log volume is huge, with millions of logs, so we need to use its paging query.
However, LZ
basic MongoDB database usage Show DBS: displays the Database List show collections: displays the sets in the current database (similar to tables in relational databases) show users: displays the user use : switches the current database, this is the
To install MongoDB, refer to my article on operating MongoDB in C.
For PHP, first download the MongoDB extension package from the Internet, https://github.com/mongodb/developer-php-driver/downloads, and select the corresponding expansion
/Files/hanguoji/mongodbw.w.w.w.rar
MongoDB authoritative Introduction: http://www.cnblogs.com/silentcross/archive/2011/06/27/2091530.html
Query:MySQL:Select * from userMongo:DB. User. Find ()
MySQL:Select * from user where name = 'starlil'Mongo:DB.
Reprinted from http://www.cnblogs.com/spnt/
MongoDB's sharding mechanism solves the problems of massive storage and dynamic resizing, but it is highly reliable and highly available from the production environment. sharding is powerless in the case
Reprinted from http://my.oschina.net/zhzhenqin/blog/97268
At present, many tutorials on the internet talk about MongoDB sharding configuration, but most of them have not gone through practical practices and are reproduced randomly. In addition, the
Reprinted from http://www.cnblogs.com/spnt/
Since MongoDB is used, it has to use its secure backup mechanism: replica set.
What is MongoDB replica set?
In general, multiple machines are used for asynchronous synchronization of the same data, so that
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 1.6 provides the sharding and replica set technology to enable MongoDB to be deployed in the production environment.Sharding
1. MongoDB Cluster StructureA MongoDB cluster consists of the following services:A. the sharding Service (shard
This article is based on Kyle banker's MongoDB in action book. This section describes some basic knowledge and usage skills related to MongoDB indexes.
Index type
Although MongoDB indexes have the same storage structure, they are still divided into
The following content is reproduced from http://be-evil.org/post-284.html
Based on the lamp environment installed in yum in this blog, phpize is located at/usr/bin, PHP-config is located at/usr/bin, and PHP. INI is located at/etc/
Therefore, the
Document directory
Download
Unzip and install
Create a data directory
Run and connect to the MongoDB Server
Further study
Original address: http://tq-zone.appspot.com/mongodb_quickstart_windows
Download
32-bit version
64-bit
1. MongoDB Shell
Mongo is actually a database shell. It is generally assumed that it runs on the same machine as mongod and that mongod is bound to the default port.
If this is not the case, you can specify these parameters at startup to connect 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.