/*** MongoDB $type operator*/
/*** The $type operator is based on the Bson type to retrieve the matching data type in the collection and returns the result.* The types of MongoDB that can be used are shown in the following table:* Type Number Notes*
MongoDB Quick Start1. MongoDB Introduction
MongoDB is a cross-platform NoSQL document-type database that stores data in the form of Key_Value pairs.
NoSQL (not only SQL) databases generally refer to non-relational databases.1.1 features of NoSQL
First, the index introductionIn MongoDB, indexes are used to support efficient queries. If there is no index, MONGODB must scan each document in the entire collection to find a matching document. However, if an appropriate index is established,
Production Environment Best Practices1. Linux:1] disable the atime option of the file system/partitionVI/etc/fstabAdd noatime and nodiratime after the corresponding partition itemLabel =/1/ext3 defaults 1 1Label =/data1/Data ext4 defaults, noatime,
Python Operation MongoDBHttp://api.mongodb.org/python/current/index.html This tutorial is intended as a introduction to working with MongoDB and Pymongo. prerequisites[Prerequisites]Before we start, make sure and the Pymongo distribution installed.
When it comes to MongoDB's architecture, it is inevitable to compare it with relational databases. Here we take MySQL for example, we make some comparisons:From the logical structure of the comparison:
MySQL Hierarchy concept
We tested the performance of Mongodb's hundreds of millions of data records and tested the following items:
(ALL inserts are performed in a single thread, and all reads are performed in multiple threads)
1) General insert performance (each inserted
About MongoDBMongoDB is lighter and more flexible than some relational databases, and is ideal for use in situations where data is large and transactional is not strong. It is also an object database with no concepts such as tables, rows, or fixed
MongoDB basic operation learning notes
Record the basic operations of MongoDB today. This is only the most basic operation, so it should be mastered.
Database
A database is a collection of physical containers. Each database has its own file system.
1. shardingConcept: In MongoDB There is another cluster, that is, sharding technology, can meet the needs of a large number of MONGODB data volume growth.When MongoDB stores massive amounts of data, a machine may not be enough to store data enough
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.