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-
In order to follow up the processing flow of the balance&split of the chunk block separately, this is not covered here. But do not misunderstand that there is no association between the two.
read&write MongoDB give me the feeling is that a bowel
MongoDB is a non-relational type of database, data storage is very flexible, using a storage structure of Bson, a binary form of class JSON storage format, supporting embedded document objects and array objects, and support some data types that JSON
Introductory Remarks: db.keyword.distinct ("keyword"). length
As follows:
Db.keyword.distinct ("keyword"). length
View the total number of records in the keyword field in the keyword table without duplicates
This method is not seen in the
Use command
MongoDB use database_name
Used to create the database. The command creates a new database and returns the existing database if it does not exist.
Dropdatabase () method
MongoDB Db.dropdatabase ()
The command is used to delete an
Indexing is the most effective means of improving query query efficiency. An index is a special data structure that stores portions of the data in an easy-to-traverse format (for example, a specific field or set of field values), which sorts the
Overview
The _id field of MongoDB exists as a primary key at the top level of all documents, and _id must be unique and always have a unique constraint index. In addition to the unique constraint, you can use any value on the _id field in the
Today, when configuring MongoDB, Win10 encountered a small problem, the configuration for the service is always not configured, the results found that the following command is not running as an administrator, resulting in failure.
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
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;
1. Differentiate file output by log level
Some people are accustomed to log information level output to different names of files, such as Info.log,error.log,warn.log, in the LOG4J2 can be configured by the filters to implement.
It is assumed that
MONGODB Multi-collection multi-table statistics combat
Complete the following reports:
Table person, Appointmentrecord number of people involved
Using aggregate functions in the person tableDb. Person.aggregate () on the line
[
{
$match: {
MONGO Warning:
2016-09-05t10:55:13.241+0800 I CONTROL [initandlisten] * * WARNING:/sys/kernel/mm/transparent_hugepage/enabled is ' Always '.2016-09-05t10:55:13.241+0800 I CONTROL [initandlisten] * * We suggest setting it to ' never '2016-09-05t10:55
MongoDB Getting Started column
Http://blog.csdn.net/column/details/19681.html
Database Operations View Database
# View all databases under the current MONGO
> Show Databases
> Show DBS
Create a database
# Connect, create TestDB database
> Use
MongoDB versus RDBMS Where statement comparison
Operation
format
Example
similar statements in an RDBMS
Equals
{:}
db.col.find({"by":"XXXX"}).pretty()
where by = ‘XXXX‘
STEP 1: Enter the GPK code in the terminal$ sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv 9da31620334bd75d9dcb49f368818c72e52529d4STEP 2: Add a MongoDB sourceUbuntu 18.04 LTS:$ echo "Deb [ARCH=AMD64]
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