Log In
Databases
/
...
/
Data Partitioning
Data Partitioning
Learn about data partitioning models along with their pros and cons.
We'll cover the following...
Why do we partition data?
Sharding
Vertical sharding
Horizontal sharding
Key-range based sharding
Advantages
Disadvantages
Hash-based sharding
Advantages
Disadvantages
Consistent hashing
Advantages of consistent hashing
Disadvantages of consistent hashing
Rebalance the partitions
Avoid hash mod n
Fixed number of partitions
Dynamic partitioning
Partition proportionally to nodes
Partitioning and secondary indexes
Partition secondary indexes by document
Partition secondary indexes by the term
Request routing
ZooKeeper
Conclusion
Why do we partition data?