Tag Info

New answers tagged


That error implies there is already data in TestDataBase.testCollections. You might consider using the --drop option: Before restoring the collections from the dumped backup, drops the collections from the target database. --drop does not drop collections that are not in the backup. When the restore includes the admin database, mongorestore with ...


Misconceptions "It is the best way to ensure data integrity to have MongoDB write to all nodes." This is entirely wrong. Let's assume you have three members in a replica set. Well, you want the data written to all nodes, so you set your write concern to 3. Now, one of your nodes fails. And while your replica set would work perfectly for reads and ...

Top 50 recent answers are included