MongoDB consists of three layers: database, collection, and document.
Relationship with relational databases:
Apsaradb for MongoDB
Database
Table collection
Row document
MongoDB has no concept of columns, rows, and links for tables in
Let's talk about what MongoDB is.
MongoDB is a product between relational databases and non-relational databases. It has the most abundant functions and features like relational databases. The supported data structure is very loose and is similar
Indexes can greatly improve the query efficiency. Resume indexes are essential in the database.
You can easily create indexes in MongoDB.
Default index _ id _
Enable the MongoDB server, create the database cnblogs, and create the set users.
// IenumeratorVaR II = M. getenumerator (); //. movenext (). Current; // M. ienumerablegetenumerator ();Ii. movenext ();VaR P = II. Current;
Foreach (var I in m){// This. Text = I. Name;MessageBox. Show (I. _ id. tostring ());}
Class
ArticleDirectory
Bala nosql & MongoDB
Django's support for nosql
Django + MongoDB options
Django + logging Engine
Others
Bala nosql & MongoDB
Currently, nosql does not have a standard definition. The most common explanation
MongoDBIt is a collection-oriented document-based database. Unlike relational databases, there are tables, columns, and rows,MongoDBDatabases are composed of a series of documents. The following describesMongoDBBasic Concepts
I,Document
I have been busy deploying MongoDB clusters recently, and I feel it is quite troublesome to deploy them in parts. There are no MongoDB O & M tools on the Internet, so it took two days to write a shell script to start and stop the MongoDB cluster,
In the last issue, I introduced MongoDB and introduced the MongoDB installation method. In this issue, we will continue to follow the instructions of the author to implement basic data operations through the samus driver.
Traditional relational
1. MongoDB sharding knowledge)
Replica set ):
The replica set enables each member (member) in the group to have the same data backup in different mongod instances, so that requests from the application server can be accessed (request visit)
First, download MongoDB from the Internet. Go to http://www.mongodb.org/and find the download address of the latest website.
This is my download.
Create a folder on the E drive, decompress the downloaded ZIP file, and copy all the files in the
Recently, I have been thinking about the impact of the underlying data model on the entire product. The underlying implementation directly affects the performance and development efficiency of the upper layer, and must meet the needs of fast
What is the impact of concurrency on "primary replica set?
During the copy Copy process, when a write operation is performed on the master database, MongoDB is also writing the oplog of the master database. The oplog is a special set in the local
Because the preliminary design is not week-long, the primary key _ id is objectid, so it is not convenient to update and maintain. It is too troublesome to modify it later.
// A duplicate record will be created. "city" and "category" are the
This article is from the "Ten-day master MongoDB" series PPT last year. The content of this series of PPT is from the "MongoDB authoritative guide (English version)" at that time. The personal translation capability is limited, and the content of
Useful chainable methods of cursor. These can optionally be optionsFindInstead of method CILS:
. Limit (N). Skip (m)To control paging.
. Sort (fields)Order by the given fields. There are several equivalent syntaxes:
. Sort ({field1:-1,
Q: What is the use of Mongodb data service?
A: First, Mongodb is suitable for storing A large amount of non-business data. Therefore, the Adhesive framework advocates that non-very important non-business data (such as logs, exceptions, and status
1. Batch insert:Inserting multiple documents at a time as an array can be completed in a single TCP request, avoiding additional overhead in multiple requests. In terms of data transmission volume, batch insert data only contains one message header,
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