🔹 What is Sharding in Databases?


Sharding is a database partitioning technique where data is split across multiple databases or servers (called shards) to improve scalability and performance.

Each shard contains a portion of the data (not a full copy). For example:


Suppose you have a users table with 100 million rows.

Instead of storing all...