Is mongodb able to get immediate feedback on back-end operations?

  mongodb, question

Redis, for example.
You submit a bgrewriteaof. You will get a reply immediately. That is, the connection between the program and redis ends. Redis himself was quietly performing the operation.

Does mongodb have similar command parameters? For example, I remove a batch of object. Nima waited for more than 30 minutes … = =. Is there just a db.collection.remove ({param}, {background: true})? = =

See here:

MongoDB defaultw=1. You can send onew=0Tell MongoDB that you don’t want to wait for its write operation to complete.