If you remove a document from database, does mongodb remove it from disk?
Answer / Km Shipra Singh
When you delete a document in MongoDB, the data is not immediately removed from the underlying storage. Instead, it is marked as deleted and will be eventually purged based on the 'write concern' configuration. The exact behavior may vary depending on the storage engine used (WiredTiger or MMAPv1).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the “__v” field in mongoose?
How you can inspect the source code of a function?
What is write concern in mongodb?
How many employees does mongodb have?
Where is the mongodb database?
How many text indexes can a mongodb collection have?
What will have to do if a shard is down or slow and you do a query?
what is objecld composed of?
What is “namespace” in mongodb?
What is the master or primary key in mongodb?
What is the basic syntax to use index in mongodb?
Can the old files in the ‘movechunk’ directory be removed?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)