This article is to record a few errors.
First download mongo-php-driver, eat not to see the deficiency of the Readme directly configure not. Error cannot find Php-config. Please use--with-php-config=path
To run Phpize first, no words to install Php5-
Just learn MongoDB, now the information on the Internet is relatively small, read a MongoDB authoritative guide, the content is not very comprehensive. 708 together to find some of the MONGO database basic additions and deletions to check operations.
MySQL users have most of the auto increment complex, but MongoDB default is not implemented, so need to simulate, programming language in PHP for example, the code is as follows:
1,
' Step ' => 1,
);
$instance = new Mongo ();
I've been thinking about architecture lately, and there's a problem that's still bothering us with the business system, which is log and log statistics. The approximate questions are as follows: We have a lot of modules, although the log format is
Turn from: http://www.chengxuyuans.com/syskills/Windows7/66110.html
1. Python Installation
Download: http://python.org/download/
Double-click the installation and add the path to the system environment variable path after installation.
2. MongoDB
You need to first install Python and MongoDB, where MongoDB's installation references the previous blog post.
In the official parlance, it is recommended to use the PIP to install the MongoDB python driver Pymongo
First need to install PIP, may
Start Configsvr
1. Ensure that the configsvr of the MONGDB is started in service mode, that is, from the script under/ETC/INIT.D, and that the user is mongod.
2. Ensure that the Mongod configuration files are identical.
3. Ensure that all keyfile
Millions of of the data in the database, processing may be slow, so it is simple to build a smaller structure of similar tables, test data
/* 0 */
{
"_id": ObjectId ("54fe73e36e26d21dc4391bdb"),
"Create_date": Isodate ("2014-07-26t13:57:18z"),
One: Problem description
I enter MongoDB's machine IP and port number in the browser: http://192.168.6.70:27017/
Page appears:
It looks like you is trying to access MongoDB over HTTP on the native driver port.
As shown in figure:
Two:
Article Source: Http://www.mongodb.org/display/DOCS/Database+Profiler
Just contact with MongoDB, have used the profile, but not so detailed to read this document, may be the size of their own system is not large enough, if the traffic will
focus on MongoDB sum of a field sum
New Basicdbobject ("$group", New Basicdbobject ("_id", "$number"). Append ("Total", New Basicdbobject ("$sum", "$" + "length ")));
New Basicdbobject ("_id", "$" +queryfield) is a fixed format
GROUP BY query
A. Introduction
Db.collection.group () uses JavaScript, which is subject to some performance limitations. In most cases, the $ group in aggregation pipeline provides an alternative that has less restrictive applicability. A simple aggregation
Reprint Address: http://blog.csdn.net/gardener_db/article/details/7432888
Mongostat is really very useful, if the DB has an exception, my first reaction is to look at Mongostat.If it is the operation of the word, drinking coffee, watching mongostat,
MongoDB set access rights, set user
MongoDB has been used for a long time, and MongoDB-based data storage has not been used to access permissions (MongoDB defaults to unrestricted access restrictions), today took a little time to study, the
Http://www.cnblogs.com/huangxincheng/archive/2012/02/18/2356595.html
http://blog.csdn.net/yiqijinbu/article/details/9053467
memory-mapped storage engine
MongoDB currently supports the memory mapping engine for the storage engine. When MongoDB
Cursors
A cursor is a line of data that can be manipulated in a row, very similar to ResultSet data processing. In the MongoDB database, the control of the cursor is very simple, only need to use the Find () function to return the cursor.
for the
Here is a reference to the article: https://www.cnblogs.com/dennisit/p/3372568.html https://www.cnblogs.com/TinyBobo/p/7867208.html/http limingnihao.iteye.com/blog/1940446
We recommend that you look at the second connection
First introduce the JAR
Aggregation Pipeline Behavior
In MongoDB, the aggregate command operates on a single collection, logically passing the entire collection into
The aggregation pipeline. To optimize the operation, wherever possible, use the following strategies to
The primary key is set by the comment "@Id", and MongoDB automatically generates the primary key if the primary key is not set.
Import Org.springframework.data.annotation.Id;
public static class ordercomsumedto{
@Id
private String OrderNo;
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.