0 votes
in MongoDB by (4.4k points)
What are the advantages of sharding in mongodb?

1 Answer

0 votes
by (4.4k points)

There are Following advantages of sharding MongoDB collection:-

  1. Faster reads:- Queries that include a shard key or a prefix of a compound shard key are faster, because MongoDB can target the search to a specific shard.
  2. Horizontal scaling:- Both read and write loads can be scaled horizontally by adding more shards to the cluster.
  3. Storage capacity:- Storage capacity of the cluster can be increased by increasing the number of shards. in the cluster.
  4. High availability:- Sharding increases the availability of requests since the sharded cluster can continue to perform read and write operations even if one of the shards is unavailable.

Share:- Whatsapp Facebook Facebook

Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.