[SERVER-3206] reusage of free space on high insert/delete enviroments Created: 06/Jun/11  Updated: 12/Jul/16  Resolved: 10/Jan/13

Status: Closed
Project: Core Server
Component/s: Internal Code, Storage
Affects Version/s: 1.8.1, 1.9.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Eger Andreas Assignee: Unassigned
Resolution: Done Votes: 5
Labels: insert, storage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File cwolfinger_growth_test.log     File growth_test.js     Text File growth_test.log     Text File growth_test_master.log     Text File growth_test_master_patched.log    
Operating System: ALL
Participants:

 Description   

MongoDB does not reuse deleted space if the collection has an index on a key (in addition to _id)

there is already a pull request on github regaring that issue - but its not mine I just tried it.
https://github.com/mongodb/mongo/pull/37

Attached is a testscript(for 1.8.1) and the logs from v1.8.1 and the patched version(based on the v1.8 branch) from github. You can clearly see the difference.

Issue is also present on current master but not as bad(see the growth_test_master.log & growth_test_master_patched.log)



 Comments   
Comment by Eliot Horowitz (Inactive) [ 10/Jan/13 ]

2.2 introduced a collection level option for power of 2 allocation, which would solve this.
See: http://docs.mongodb.org/manual/reference/command/collMod/#collMod

Generated at Thu Feb 08 03:02:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.