Greater than: $ GT
Greater than or equal to: $ GTE
Less than: $ lt
Less than or equal to: $ LTE
Not equal to: $ ne
In: $ in
Example 1: query the persons whose age is greater than 20 and
DB. XXX. Find ({"Age": {"$ gt": 20, "LTE": 30 }});
1) Problem
When using MongoDB to insert data,"Exception 12520 FileAllocation failure"Error. As a result, the data cannot be successfully inserted into the database.
2) Analysis
After analysis, it is found that the disk space is full. After the
The log input to nosql database can ensure the log output speed and unified management log, log4mongo-net project http://log42.16.org/display/pub/log4###for#.netuse log4netto Save the log to mongodb. Generally, it can be used to replace log4net + MS
MongoDB version 1.6.0 was released, which is the fourth major stable version after version 1.0, 1.2, and 1.4. MongoDB version 1.6.1 was released in August 17.
This version mainly focuses on enhancing the scale-out function. The sharding function
MongoDB 2.4 has been released. This version adds some new features, such as text search, hash-based sharding, better geospatial functions, support for geojson, and performance and tools. We also discussed the next road map of MongoDB with 10gen.
Cutting-edge
I plan to learn about nosql recently, so I chose MongoDB. I will not introduce MongoDB here. This series is written as a post-learning assignment. You can write down all the problems you encounter and what you need to pay attention,
For each database, addition, deletion, modification, and query are essential. First, we will introduce add, that is, insert.
To compare the four operations, insert is the simplest in MongoDB. The insret command is used to insert data in MongoDB.
Date
When creating a date in MongoDB, the date created in different ways is different.
The date type created using date () in MongoDB is a string type, which contains time zone and other data. New Date () is a date object of the isodate type.
Http://www.xiaocai.name/emlog/post/35
MongoDB (http://www.mongodb.org) is a nosql document-type database management system, that is not a traditional relational database (similarOracle, MS-sqlserver, MySQL, etc ). In traditional relational databases,
MongoDB is an open-source, non-schema document-based database and a popular nosql database (non-relational database)
MongoDB's data structure is very loose. It is similar to the JSON bjson format and supports data indexing. It is a set-oriented,
The document-oriented nosql database does not solve high-performance concurrent read/write, but ensures massive data storage and good query performance.
Conditional Operators ,> = This operator does not need to be explained. The most common operator
Mongodump can be used for database or table-level backup of MongoDB. The following is an example:
Back up the my_mongodb database [root @ localhost bin] #./mongodump-D my_mongodb
Connected to: 127.0.0.1
Database: my_mongodb to
The MongoDB service is started in the official manual without any parameters. Once the client connects, it can perform any operations on the database and remotely access the database. Therefore, we recommend that you do not set any parameters in the
I have been studying MongoDB recently, so be careful. I found that the original blog Park supports live writer.
I was excited and finally came back here many years later. I used liver writer to write MySpace and Wordpress.
But the former is over,
IntroductionBytes ¶
Administrators and Users can control MongoDB or mongos instances fromMongodCommand Line ParametersOr use the configuration file to modify.
Although the two methods are functionally equivalent and all settings are similar, the
There are many ways to install MongoDB. you can install MongoDB in source code or in centos using Yum source. Because MongoDB is updated fast, I prefer the yum source installation method. The installation steps for 64-bit centos are as follows:
1.
Recently, the San Francisco-based Stripe Company released mosql, which allows you to easily generate reports from MongoDB using a replicated PostgreSQL database. Mosql is based on mongoriver, which is also a product of stripe. It can monitor MongoDB
Step 1: Download The MongoDB Software Package
: Http://www.mongodb.org/downloads, download the Windows 32-bit software package.
Step 2: Decompress the downloaded software package to drive D. It is best not to create it on drive C to avoid the
This section describes how to perform advanced queries on MongoDB in the console, including the tutorial content, hands-on experience with me labs, and understanding these rules. For other languages (Java, ruby, Python, etc.) is of great help in
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.