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,
Source Address http://www.ningoo.net/html/2011/mongodb_in_a_nutshell_2.html by ningoo
I have talked about a bunch of things before. The best way is to let him run it, and then verify its implementation with the help of documents and tests, and
Help show helpshow DBS show database namesshow collections show collections in current databaseshow users show users in current databaseshow profile show most recent system. profile entries with time> = 1 msuse set curent database to dB. adduser
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.
Install MongoDB on Windows
First, go to the official MongoDB website. Next, we can observe that the folder contains the following files:
As you can see, MongoDB is very simple, with only 10 files. Next, create a directory for storing database files,
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
Reprinted from http://www.cnblogs.com/spnt/
MongoDB's sharding mechanism solves the problems of massive storage and dynamic resizing, but it is highly reliable and highly available from the production environment. sharding is powerless in the case
Download MongoDB
Http://www.mongodb.org/downloads
Find the version of your operating system
Create a directory to store data before you start.
Mkdir/Data
Tar xzvf youdownload
CD youdownload/bin
./Mongod -- dbpath =/Data
MongoDB is running.
The following things should be understood by PHP programmers.For more details, refer to Baidu Google
MongoDB PHP document http://us.php.net/manual/en/book.mongo.php1. MongoDB is a separate server2. MongoDB is based on documents rather than tables.3.
Healthcheck used MongoDB, need to install, temporarily extract the reference method on the network as follows http://www.linuxidc.com/Linux/2010-08/28068.htm
MongoDB is a scalable and high-performance next-generation database. Data in MongoDB is
When to use GridFS
A large number of files. GirdFS performs better than many file systems when processing large (several thousand) files.
Files uploaded by the user. When a user uploads a file, you may have a large number of files and want to
In the previous blog, we successfully installed and started the Mongo database. In this blog, I will introduce the development of the MongoDB database. For details, refer to the official MongoDB documentation. To smoothly develop MongoDB databases,
In the previous article, I started MongoDB development and talked about how to install MongoDB in windows. In this article, I will introduce how to install MongoDB in Linux.
First, download the MongoDB database, address:
Test condition: for Windows + MongoDB 1.8.2, insert the test data first: for (var I = 1; I 2 ;}}); group joins $ where to query db. test. group ({key: {age: true}, initial: {num: 0}, $ reduce: function (doc, prev) {prev. num ++}, condition :{$
Recently, php's mongo extension was used for data statistics and computation. One of the timestamp fields, precise to milliseconds, has a length of 13 BITs. However, it was originally stored as a string:
{ "_id" : ObjectId("504eea97e4b023cf38e34039")
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