What will happen when you remove a document from database in mongodb? Does mongodb remove it from disk?
Answer / Deep Kumar
When you delete a document from MongoDB, the document is marked as deleted and moved to a special collection named `.trash`. The space occupied by the deleted document is not immediately reclaimed. However, the deleted document remains on disk until garbage collection runs, which helps ensure data integrity and recoverability. In some configurations, you can also set up tiered storage or change journaling options to optimize for disk usage.
| Is This Answer Correct ? | 0 Yes | 0 No |
While creating schema in mongodb what are the points need to be taken in consideration?
What is the method to configure the cache size in mongodb?
Why does profiler use in mongodb?
What will be objects between two dates in mongodb?
How to insert image in mongodb database?
How is mongodb data stored?
Does mongodb run on amazon ebs?
What is crud?
How to retrieve data from multiple collections in mongodb?
What is a namespace in mongodb?
Does google use mongodb?
In which format data is stored in mongodb?
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)