Which option is best for removing all elements of a large collection in a heavily used prod database? A bulk.find({}).remove() vs removeAll() vs dropCollection() or maybe another strategy?
By the mongo documentation, dropCollection locks the entire DB where the collection sits while it proceeds, which is not acceptable for an heavily used prod DB.
Time wise, a removeAll() take slightly more time vs a bulk.find({}).remove() (tested each on exact same collection of roughly ~700k).