I have MongoDB database of several millions documents. To reduce it's size, I'm going to make a task to delete some fields of each document when they will expire, periodically (but not documents themself).
I'm not sure how the engine stores the data on disk, so will MongoDB compact database on disk, defragment data? Is that the right thing to do with MongoDB?
I am using MongoDB 3.2.4 with WiredTiger.
P.S. I am not asking about releasing space to OS, I am asking about internal MongoDB storage of data, is it prone to be fragmented? Should I do something additional to defragment it?