Reputation: 10737
I have 1x mongodb shard 4TB in single server(512GB RAM) , if I split the shard in 10x shards/partitions in the same server , will the performance will be better?
Upvotes: 0
Views: 34
Reputation: 262734
No. Sharding is to give the database more resources (CPU, disk, RAM, bandwidth) than you could fit into a single machine. Spreading the same resources over multiple machines won't help (and creating ten shards on the same machine even less so). You'd just be adding overhead without any benefits. If you end up with ten times the resources in total, then yes, that would help.
Upvotes: 4