- Mastering MongoDB 3.x
- Alex Giamas
- 147字
- 2021-08-20 10:10:47
Best practices for sharding
Sharding is MongoDB's solution for horizontal scaling. In Chapter 8, Storage Engines, we will cover how to use it in more detail, here are some best practices based on the underlying data architecture:
- Think about query routing: Based on different shard keys and techniques, the mongos query router may direct the query to some or all of the members of a shard. It's important to take our queries into account when designing sharding so that we don't end up with our queries hitting all of our shards.
- Use tag aware sharding: Tags can provide more fine-grained distribution of data across our shards. Using the right set of tags for each shard, we can ensure that subsets of data get stored in a specific set of shards. This can be useful for data proximity between application servers, MongoDB shards, and the users.
推薦閱讀
- PPT,要你好看
- 空間機(jī)器人遙操作系統(tǒng)及控制
- Getting Started with Containerization
- Julia 1.0 Programming
- Matplotlib 3.0 Cookbook
- 大型數(shù)據(jù)庫管理系統(tǒng)技術(shù)、應(yīng)用與實(shí)例分析:SQL Server 2005
- 大數(shù)據(jù)平臺異常檢測分析系統(tǒng)的若干關(guān)鍵技術(shù)研究
- 精通數(shù)據(jù)科學(xué)算法
- Excel 2007常見技法與行業(yè)應(yīng)用實(shí)例精講
- 網(wǎng)絡(luò)管理工具實(shí)用詳解
- MATLAB-Simulink系統(tǒng)仿真超級學(xué)習(xí)手冊
- 智能鼠原理與制作(進(jìn)階篇)
- 貫通開源Web圖形與報表技術(shù)全集
- 機(jī)床電氣控制與PLC
- 30天學(xué)通Java Web項(xiàng)目案例開發(fā)