Delete database from mongodb with replica set -


i have mongodb running 3 member replica set. members & running.

i have 1 database 4-5 collections , want delete database.

what best way it. can use db.dropdatabase() on primary? need stop secondary before drop database? after drop database secondary members sync automatically primary? memory, free after delete database?

yes. drop database using command db.dropdatabase() in primary , changes propagated secondaries well. don't need shutdown secondaries.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -