I learn MongoDB time is not long, but in view of the needs of the work and the future trend of development, I want to deeper understanding of the underlying principles of MONGODB and more flexible application of mongodb, learning while working
It is a kind of database cluster system that expands the massive data horizontally, the data table is stored on each node of sharding, and the user can easily construct a distributed MongoDB cluster by simple configuration.The data chunking of
MongoDB is written in C + +, whose name comes from the middle part of the word humongous, and its ambition is the processing of massive data from its name. One of the most concise descriptions of it is: scalable, high-performance, open source,
1. IntroductionMongoDB provides a variety of index support, the index information is saved in System.indexes, and the default is always to create an index _id, its index using the basic and MySQL relational database, can actually say, An index is
Statement: The article is mainly from the "MongoDB actual Combat" a book, the main want to learn MongoDB knowledge through the book, deepen understanding, so write in their own blog, as a record, in the final chapter, there will be a collection of
MongodbInstalling MongoDBI think it's a little bit more mannual install: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/Start MongoDB$ mongodConnection Mogodb$ MONGOMongo> Use Monk-appMongo> Db.products.insert ({"Name": "Apple Juice"
(1) $all query: Used to query an array, match elements in an array, to match all to have results: example:Now if I write this way: Db.customer.find ({"Books": {"$all": ["Java", "JQuery"]}}), then the result is not found, becausein document no
perform a two-step commit OverviewThis section provides a multi-record update or multi-record transaction, using a two-step commit to complete a multi-record write template. In addition, this method can be extended to provide rollback-like
MONGOBD's query is plainly a find () method. But it's still a little complicated. Come on(1) Query all data: DB. Collection name. Find (); There's nothing to say.(2) Query the first data: DB. Set name. FindOne (); There's nothing to say.(3)
Chapter II BASIC commands
One, MongoDB command说明:Mongodb命令是区分大小写的,使用的命名规则是驼峰命名法。 对于database和collection无需主动创建,在插入数据时,如果database和collection不存在则会自动创建。Common commandsHelp commandWith this command you can see some of the most basic commands,Use
In some cases, you can only use a remote MongoDB instance and cannot log on to the server on which the MongoDB instance resides, and a list of hosts and ports for a remote MongoDB instance is maintained on a single server. It then automatically adds
Data logging and calculation results are returned during the aggregation operation. Aggregation Operations group values from multiple documents, and can perform various operations, grouping data to return a single result. The SQL COUNT (*) and group
Use commandMongoDB use database_name is used to create a database. The command creates a new database and returns the existing database if it does not exist.Grammar:The basic syntax for the use DATABASE statement is as follows:Use
Reatecollection () methodMongoDB db.createcollection (name, options) is used to create collections.Grammar:The basic createcollection () command syntax is as follows:DB. CreateCollection(name, options) In the commands, name is the name of the
The most important difference between MongoDB and relational database is the asymmetric, weak transaction of the table structure, MongoDB sacrifices the transaction to exchange for faster access speed, some people say that MongoDB is too greedy for
MongoDB's image management tool is very much, I use Rockmongo.Rockmongo is a PHP5-written MongoDB management tool.Main Features:
Using the loose new BSD license protocol
Fast and easy to install
Supports 10 national and regional
MongoDB was installed, user Rex with admin root and test database added, and user authentication turned on.Connect to the MongoDB database as documented: $mongo = new MONGO ("Mongodb://rex:[email protected]");Results found error after opening
http://blog.csdn.net/smallfish1983/article/details/38078019According to the above man wrote, beginners, do not spit blood, basic skills can be achieved.650) this.width=650; "src="
A. DownloadDownload from http://www.mongodb.org/downloads address: Mongodb-linux-x86_64-2.4.11.tarTwo. Installation1> Setting up the MongoDB directory [[email protected] home] #cd/home/apps attached: Create directory commands under CentOS [[email
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.