About the benefits of MongoDB, advantages and so on here is not said, the only thing to say is that MongoDB has ternary: Database, collection, document, where "collection"is "table" in the corresponding relational database, "document" corresponds to
These days the project revision, time is tight, blog also did not follow, also hope everyone forgive.Well, today we share the basic operation of the index in MongoDB, we do not have to develop the daily development of the program to optimize
About MongoDB related knowledge, reading notes, easy to consult with, not regularly updated (pure hand) "MongoDB authoritative guide"First, create updates and deletes1. Create// bulk inserting a collection can save time, using only one TCP // Bson
MongoDB default boot is no authentication, and no account, as long as the service can be connected to the database for a variety of operations, this can not. Now, we have to start with user and authentication step-by.In the first step, we have to
Brief introduction
MongoDB is a non-relational, document-based database with the convenience of having direct access to class types ... The official website will open free courses on a regular basis, using MongoDB in the previous project,
Sort () methodTo sort documents in MongoDB, you need to use the sort () method. The sort () method accepts a document that contains a list of fields together with their sort order. To specify sort order 1 and-1. 1 is used in ascending order, and-1
recently in MU class online to see the next Mongdb video, here to summarize and tidy upMongoDB Learning site:1. MongoDB Website: www.mongodb.org2. MongoDB Domestic official website: www.monging.com3. Chinese MongoDB document address:
Oneself in a CentOS6.6 system in accordance with the official website instructions, go through the installation process, record.See a MONGO video, the installation described above is installed with the source code, and the official network said the
Issue background:Company and Teng Xun co-developed a hand-tour, the need to develop a background management platform to statistics daily game data; The data volume is relatively large collection of two, one is User_info, about 2,453 data, the other
MongoDB in the 2.4 latest version of the user Rights management has made a new adjustment, the permissions are refined, enhanced security, more and more like the rights of MySQL management.1. Create a Super UserUse Admindb.createuser ( { User:
1. Table-related commands:Db. AddUser (username,password) Add user Db.auth (Usrename,password) Set database connection validation db.clonedatabase (fromhost) clone a database from the target server db.com MANDHELP (name) returns the
Connecting a database with a Pymongo package Use the XLRD package to read Excel data, and to convert Excel format data to JSON-formatted data due to different data structures "TypeError: ' str ' object does not a support item assignment" due to a
MongoDB replica set database split and version upgrade combatProblem descriptionThe replica set rs_1 all of the database services, and adding memory is no longer sufficient for application stress.Solution SolutionsConsider splitting the replica set
sharding refers to data fragmentationcluster cluster, a cluster contains multiple shards, each shard consists of a replica setCollection The concept of a table in db, except that there is no schemaEach collection in the sharding scene is divided
Brief introductionMongoDB 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 high-performance, open-source,
1:mongostatMongoDB2.6 versionMongoDB3.0 version2:db.setprofilinglevel (2): Open ProfilerMySQL-like slow logThe profiler is turned off by default, and you can choose to turn it all on, or when you have a slow query.Db.setprofilinglevel (level,) 0=off
In note 01, the start Mongod is specified directly from the command line. mongod --dbpath /path/to/database --logpath /path/to/logfile --fork --port 27017You can specify the profile to start,-F to specify the configuration file directorymongod -f
Common mongodb shell
> Use cmd_test // create a database switched to db cmd_test> db. createCollection ("test") // create a table is the collection {"OK": 1}> db. db. addUser (db. group (db. adminCommand (db. groupcmd (db. auth (db. groupeval (db.
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