MongoDB practice (MongoDB developer's appearance)

Source: Internet
Author: User
Tags mongodb query mongodb update

MongoDB practice (MongoDB developer's appearance)
Basic Information
Original Title: MongoDB in action
Author: Banker (K.) [Translator's introduction]
Translator: Ding Xuefeng
Series name: Turing programming Series
Press: People's post and telecommunications Press
ISBN: 9787115295071
Mounting time:
Published on: February 1, October 2012
Start: 16
Page number: 1
Version: 1-1
Category: Computer

For more information, see MongoDB practice (MongoDB developer's appearance)

Introduction
Books
Computer books
MongoDB practice is written by 10gen (which develops and supports open source database MongoDB) to maintain Ruby and Kyle banker, a software engineer driven by C-language Official MongoDB, it is an authoritative guide to comprehensively and meticulously introduce MongoDB and its applications. This book is divided into three parts. It first introduces the history, features, and use cases of MongoDB, then elaborates on the MongoDB API in detail, and focuses on application development to gradually describe the modes and operations of e-commerce applications, finally, performance and O & M are considered from the DBA's perspective. In addition, the book also introduces the document-oriented database model, and deeply analyzes features such as replication, automatic partitioning, and deployment.
MongoDB practice is suitable for beginners and intermediate application developers and DBA learning reference.
Directory
MongoDB practice
Part 1 Getting Started Guide
Chapter 2 database for modern Web 2
1.1 born on the cloud 3
1.2 Main Features of MongoDB 4
1.2.1 document data model 4
1.2.2 instant query 6
1.2.3 secondary index 7
1.2.4 copy 8
1.2.5 speed and durability 9
1.2.6 database expansion 10
1.3 MongoDB core servers and tools 11
1.3.1 core server 11
1.3.2 JavaScript shell 12
1.3.3 database driver 12
1.3.4 command line tool 13
1.4 why MongoDB 13
1.4.1 comparison between MongoDB and other databases 14
1.4.2 use cases and production deployment 16
1.5 tips and limitations 18
1.6 Summary 18
Chapter 2 MongoDB JavaScript shell 19
2.1 go deep into MongoDB shell 19
2.1.1 start shell 20
2.1.2 insert and query 20
2.1.3 update document 22
2.1.4 delete data 23
2.2 create an index and query 24
2.2.1 create a large set 24
2.2.2 index and explain () 25
2.3 Basic management 27
2.3.1 obtain database information 27
2.3.2 how commands work 29
2.4 get help 30
2.5 Summary 31
Chapter 3 using MongoDB to write programs 32
3.1 using MongoDB 32 through Ruby
3.1.1 installation and connection 33
3.1.2 Insert a document with Ruby 34
3.1.3 query and cursor 34
3.1.4 update and delete 35
3.1.5 DATABASE Command 36
3.2 How the driver works 37
3.2.1 Object ID generation 37
3.2.2 bson 38
3.2.3 network transmission 40
3.3 construct simple applications 41
3.3.1 configuration 41
3.3.2 collect data 42
3.3.3 view archive 43
3.4 summary 46
Part 2 MongoDB and application development
Chapter 4 document-oriented data 48
4.1 Schema Design Principles 48
4.2 design e-commerce data model 49
4.2.1 product and category 50
4.2.2 users and orders 53
4.2.3 comment 55
4.3 details: database, collection, and documentation 56
4.3.1 database 56
4.3.2 set 58
4.3.3 document and insert 61
4.4 summary 65
Chapter 2 query and aggregation 66
5.1 e-commerce query 66
5.1.1 products, categories and comments 66
5.1.2 users and orders 68
5.2 MongoDB Query Language 70
5.2.1 query selector 70
5.2.2 query option 78
5.3 aggregation command 79
5.3.1 Group comments by users 79
5.3.2 apply mapreduce 81 to orders by region
5.4 detailed explanation aggregation 82
5.4.1 max () and min () 82
5.4.2 distinct 83
5.4.3 group 83
5.4.4 map-Reduce 84
5.5 summary 86
Chapter 2 update, atomic operation and deletion 87
6.1 getting started with document update 87
6.2 e-commerce data model update 89
6.2.1 product and category 90
6.2.2 comment 93
6.2.3 Order 94
6.3 atomic document processing 96
6.3.1 order status change 97
6.3.2 inventory management 98
6.4 details: MongoDB update and deletion 101
6.4.1 update type and option 101
6.4.2 update operator 103
6.4.3 the findandmodify command 106
6.4.4 Delete 106
6.4.5 concurrency, atomicity and isolation 107
6.4.6 update Performance description 107
6.5 conclusion 109
Part 3 proficient in MongoDB
Chapter 2 Index and query optimization 7th
7.1 index theory 112
7.1.1 Ideological Experiment 112
7.1.2 core index concept 115
7.1.3 B tree 118
7.2 indexing practices 119
7.2.1 index type 119
7.2.2 indexing management 121
7.3 query optimization 125
7.3.1 identifying slow queries 125
7.3.2 analyze slow query 127
7.3.3 query mode 133
7.4 conclusion 134
Chapter 2 Copy 8th
8.1 copy overview 135
8.1.1 why is replication important 135
8.1.2 Use Cases of replication 136
8.2 replica set 137
8.2.1 configure 137
8.2.2 how replication works 141
8.2.3 management 146
8.3 master-slave replication 152
8.4 drive and copy 152
8.4.1 connection and Failover 153
8.4.2 write concern 154
8.4.3 read scaling 155
8.4.4 label 156
8.5 conclusion 158
Chapter 1 parts 9th
9.1 fragment overview 159
9.1.1 what is sharded 160
9.1.2 Working Principle of sharding 161
9.2 sample sharded cluster 164
9.2.1 configure 164
9.2.2 write to sharded cluster 168
9.3 sharding cluster query and indexing 173
9.3.1 partition Query type 173
9.3.2 index 177
9.4 select the partition key 178
9.4.1 inefficient partition key 178
9.4.2 ideal partition key 179
9.5 partitions in the production environment 180
9.5.1 deployment and configuration 180
9.5.2 management 184
9.6 conclusion 188
Chapter 4 deployment and management 10th
10.1 deployment 189
10.1.1 deployment environment 189
10.1.2 configure Server 193
10.1.3 data import and export 194
10.1.4 Security 195
10.2 Monitoring and Diagnosis 197
10.2.1 log 197
10.2.2 Monitor Tool 198
10.2.3 external monitoring application 201
10.2.4 diagnostic tools (sniff, bsondump) 201
10.3 maintenance 202
10.3.1 backup and recovery 202
10.3.2 compression and repair 204
Upgrade 10.3.3 to 205
10.4 Performance Tuning 205
10.4.1 index and query 206 for improved performance
10.4.2 add memory 206
10.4.3 improve disk performance by 207
10.4.4 horizontal scaling 207
10.4.5 seek professional help 207
10.5 conclusion 208
Appendix A installation 209
Appendix B Design Mode 216
Appendix C binary data & gridfs 226
Appendix D use MongoDB 232 in PHP, Java, and C ++
Appendix E Spatial Indexing 240

Source of this book: China Interactive publishing network

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.