O ' Reilly: Learn more about MongoDB PDF

Source: Internet
Author: User
Tags unique id

: Network Disk Download

Content Introduction· · · · · ·

In-depth learning MongoDB is divided into two parts, corresponding to the scaling MongoDB 50Tips and Tricks for Mongo DB developers Two, which is published by O ' Reilly Company. "In-depth learning MongoDB". The first part comprehensively explains the content of building and using the cluster, not only explains the use of MongoDB from the perspective of application developers, but also introduces the management of the cluster from the aspect of operation and maintenance. The content includes setting up MongoDB clusters through sharding, how shards work, querying and updating data, manipulating, monitoring, and backing up clusters, error handling. The second part introduces the application design, implementation, optimization, data security and management techniques, including the pros and cons of normalization and inverse normalization, and the failure recovery of replication groups.

Author profile ...

Kristina Chodorow 10gen software engineer, a core member of the MongoDB project, engages in work related to database servers, PHP drivers, and Perl drivers. She often reports at world-class technical conferences, including Oscon, LinuxCon, Fosdem and Latinoware.

Catalog ... MongoDB Extension Technology
1th Chapter Welcome to the world of distributed computing 1
2nd. Understanding Shard 5
2.1 Split Data 7
2.1.1 Assigning data 8
2.1.2 How to create a block 11
2.2 Balance 14
2.3 MONGOs 17
2.4 Configuring server 18
2.5 Construction of Cluster 18
The 3rd chapter establishes the cluster 21
3.1 Selecting the TAB key 23
3.1.1 Small Cardinal Chip key 23
3.1.2 Ascending Tab key 25
3.1.3 Random Tab key 26
3.1.4 Good Chip key 27
3.2 New and old collection shards 29
3.2.1 Quick Start 29
3.2.2 Configuring Server 29
3.2.3 MONGOs 30
3.2.4 Shard 31
3.2.5 Databases and Collections 32
3.3 Increase or decrease capacity 33
3.3.1 Removing shards 34
3.3.2 modifying servers in a shard 35
Chapter 4th using cluster 37
4.1 Queries 39
4.2 Why is this so? 39
4.2.1 Count 39
4.2.2 Unique index 40
4.2.3 Update 41
4.3 MapReduce 42
Chapter 5th Management 43
5.1 Using the command line 45
5.1.1 Understanding Overview 45
5.1.2 Configuration Collection 46
What should 5.1.3 connect to 47
5.2 Monitoring 47
5.2.1 Mongostat 48
5.2.2 Web Management Interface 48
5.3 Backup 49
5.4 Recommendations for Architecture 50
5.4.1 Creating a contingency site 50
5.4.2 Digging a Moat 50
5.5 Error Handling 51
5.5.1 Shard Stop 51
5.5.2 Most Shard Downtime 51
5.5.3 Configuring server Downtime 52
5.5.4 MONGOs Process Dead 52
5.5.5 Other Precautions 53
The 6th chapter of learning Resources 55
50 examples of MongoDB development techniques
1th Application Design Tips 65
1.1 Tip 1: The tradeoff between speed and completeness 67
1.1.1 Example: Online shopping Cart 68
1.1.2 Consideration Factor 69
1.2 Tip 2: Adapt to the future data to be normalized 70
1.3 Tip 3: Try to get data for a single query 71
1.3.1 Example: Blog 71
1.3.2 Example: album 72
1.4 Tip 4: Embedding associated data 72
1.5 Tip 5: Embed point-in-time data 73
1.6 Tip 6: Do not embed increasing data 73
1.7 Tip 7: Pre-populated data 73
1.8 Tip 8: Allocate space as much as possible 74
1.9 Tip 9: Use arrays to store embedded data for anonymous access 75
1.10 Tip 10: Document to be self-sufficient 77
1.11 Tip 11: Prioritize using the $ operator 79
1.11.1 in-depth understanding 79
1.11.2 Improve Performance 79
1.12 Tip 12: Aggregate 80 at any time
1.13 Tip 13: Write code to handle data integrity issues 80
2nd. Implementation Tips 83
2.1 Tip 14: Use the correct type 85
2.2 Tip 15: Replace _id with a simple unique ID 85
2.3 Tip 16: Don't use documents to do _ID 86
2.4 Tip 17: Do not use database references 86
2.5 Tip 18: Do not use GRIDFS to process small binary data 87
2.6 Tip 19: Handle "seamless" failover 88
2.7 Tip 20: Handling replication group failure and Recovery 88
3rd. Optimization Tips 89
3.1 Tip 21: Minimize disk Access 91
3.2 Tip 22: Use an index to reduce memory consumption by 92
3.3 Tip 23: Don't use index 94 everywhere
3.4 Tip 24: Index overwrite query 95
3.5 Tip 25: Use composite indexes to speed up multiple queries 95
3.6 Tip 26: Speed up scanning by creating a hierarchical document 96
3.7 Tips for 27:and-type query points 98
3.8 Tips for 28:or-type query points 98
Chapter 4th Data Security and Consistency 101
4.1 Tip 29: Single-machine log, multi-computer replication 103
4.2 Tip 30: Stick with the copy or log, or both 104
4.3 Tip 31: Don't trust data recovered by repair 105
4.4 Tricks 32:getlasterror 105
4.5 Tip 33: Be sure to use secure write 106 during development
4.6 Tip 34: Using the W parameter 106
4.7 Tip 35: Be sure to set a timeout for W 107
4.8 Tip 36: Do not call Fsync 108 every time you write
4.9 Tip 37: Normal startup after a crash 108
4.10 Tip 38: Instantaneous backup of a persistent server 108
Chapter 5th Management Skills 109
5.1 Tip 39: Manually clean up block collection 111
5.2 Tip 40: Compress the database with repair 111
5.3 Tip 41: Do not change the weight of the member voting for the replication group 112
5.4 Tip 42: You can reset a replication group when there are no active nodes 113
5.5 Tip 43: Do not specify--SHARDSVR and--CONFIGSVR parameter 115
5.6 Tip 44: Use--notablescan 115 when developing
5.7 Tip 45: Learn JavaScript 116
5.8 Tip 46: Manage all servers and databases in the shell 116
5.9 Tip 47: Get help 117
5.10 Tip 48: Create a startup file 118
5.11 Tip 49: Custom Function 119
5.12 Tip 50: Read itself with a single connection write 120

: Network Disk Download

O ' Reilly: Learn more about MongoDB PDF

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.