Boow
(Poubelle Enorme)
February 27, 2024, 8:38pm
1
Hi all,
I have a mongoDB cluster with the partitioned option to true for a database. This DB doesn’t have any shard key. Is it safe to rollback the partitioned option?
I read partitioned option without shard key could be affected performance.
Thanks.
Kobe_W
(Kobe W)
February 28, 2024, 5:02am
2
how do you see the option? What cmd did you run?
Boow
(Poubelle Enorme)
March 2, 2024, 9:00pm
3
Hi @Kobe_W ,
I have this information from this command :
sh.status()
{
database: {
_id: 'my_db',
primary: 'rs0',
partitioned: true, <======================================
version: {
uuid: UUID('ef1ad0b8-ac7f-8276-89ae-c478b84fe0a8'),
lastMod: 1,
timestamp: Timestamp({ t: 1700574117, i: 161 })
}
},
collections: {}
},
I have a similar output for the config database but with chunks (because a sharKey exists).
Kobe_W
(Kobe W)
March 3, 2024, 5:14am
4
it says the db now supports sharding, doesn’t mean any collections in it must be sharded.
1 Like
Boow
(Poubelle Enorme)
March 5, 2024, 7:01pm
5
So it doesn’t affect the performance to stay with this configuration?
Kobe_W
(Kobe W)
March 6, 2024, 6:17am
7
no performance impact. A database has no concept of sharding, while only a collection does.