As someone that fairly recently spent many months trying to shard a large mongodb system, this is patently false. Mongodb is not sharded “by default”, and sharding it is a lot of work and comes with a very heavy performance impact.
Re:MongoDB 6 Released
by gqewogpdqa on Thursday July 21, 2022 @04:05PM
(#32184268)
absolutely true that this is an area of improvement for MongoDB - moving from a "replica set" (a single shard cluster but without the config server cluster) to a sharded cluster can be hard. Atlas does it for you, but even then it can be hard. My info says they are working very hard on this.
Live resharding indeed helps for a sharded cluster that already exists.
Re:MongoDB 6 Released
by altdataseller on Wednesday July 20, 2022 @07:12AM
(#32164073)
Yes you need to enable sharding but its provided for you, if you want to enable it is what I meant. And adding shards as well. All configuration options in Mongo - vs you need to do this in a more manual way in Postgres (and change your app code more)
Of course it haa a perf impact - nothing is free.
With Mongo, its distributed by default. And if your data keeps growing, you simply add more nodes without any additional changes in the application code.