Read some information, corresponding only need to know how to query and use MongoDB for me, these are enough.On the left is the MONGODB query statement, and the right is the SQL statement. Compared with the use, very convenient.Db.users.find ()
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
Gridfs is a file specification that stores large files in a MongoDB database. All officially supported drivers implement the GRIDFS specification.Gridfs is a built-in feature in MongoDB that can be used to store a large number of small files.Website
Create a documentInserting data into MongoDB, using INSERT,such as: Db.refactor.insert ({"Refactor ' s Blog": "Http://www.cnblogs.com/refactor"})This action adds a "_id" to the document, and the key is saved in the database.BULK INSERTIf you want to
Find in addition to the exact query, can match more conditions;First, comparison operators$LT Representative $lte Representative $GT Representative >;$GTE Representative >=;> db.post.find () { "_id" : objectid ("54a530c3ff0df3732bac1681"), "id"
Database operationsMongoUse TEST3;Db.users.insert ({"Name": "AAA", "Email": "[email protected]"});Nodejs Code WritingCreate a new test3 directory and edit the following file:Package.json{ "name": "Application-name", "version": "0.0.1", true,
installationMongodbThere are many ways to install the source code,CentosYou can also use the Yum source installation method. Since MongoDB is updated more quickly, I prefer to use the Yum source installation method. The installation steps under
The index in http://www.cnblogs.com/lipan/archive/2011/03/28/1997202.html MongoDB is similar to relational database, it is to improve the efficiency of query and sorting, and the principle of implementation is basically consistent. Because the key
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
about MongoDB's MapReduceCategory: MongoDB2012-12-06 21:378676 People read Comments (2) favorite reports MongoDB Mapreducemapreduce is a computational model that simply executes a large amount of work (data) decomposition (MAP) and then merges
MongoDB data file backup and recovery backup and recovery data are important for managing any data storage system. 1, cold backup and recovery-Create a copy of the data file (if you want to stop the MongoDB server), that is, direct copy www.2cto.com
Demand:1. A new record is added to the source database, and a new record is added to the target repository;2. The source database modifies a record, and the target library modifies the record at the same time;Example uses three kettle componentsThe
Data export Mongoexport Suppose there's a user table in the library with 2 records, and we're going to export it> Use My_mongodbSwitched to DB My_mongodb> Db.user.find ();{"_id": ObjectId ("4f81a4a1779282ca68fd8a5a"), "UID": 2, "username": "Jerry", "
MongoDB vs. mysql command comparisonThe traditional relational database is usually composed of three hierarchical concepts of database, table, record, and MongoDB is made up of database, collection (collection), Document object composed of three
MongoDB2.6 's Cxx driver (Mongo-cxx-driver-26compat), built-in with a database connection pool, makes it easy to manage database connections, but official documentation is obscure and novice beginners often don't know how to use connection pooling
Distributed basis: Consistency Hashilu by algorithm consistency hash http://www.jiacheo.org/blog/174 Http://www.tuicool.com/articles/vQVbmai Http://www.cnblogs.com/huangxincheng/p/3708316.html The use of Redis and MongoDB, to be able to write their
MongoDB Community version and enterprise version differences are mainly embodied in security certification, system certification and other aspects, specific information refer to the following table:
Version features
Community
[note] The current test environment is just a single server.The Tungten version of the deployment test is 2.1.2-xxxx;Requirements:MySQL ConfigurationThe tungsten user to use the new password format complete the following stepsMysql>set session
--Backup1. Back up to the default folderD:\mongodb\bin is the installation directory of MongoDBMONGODUMP-D is the BACKUP DATABASE commandTestDB database nameThe backed up database is in the Dump folder in the MongoDB installation directory2. Back up
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