Because some data has been deleted. Nothing like a database automatically reduces the file size when data is deleted - this is an extremely expensive operation that requires rewriting the entire file.
But it’s okay. Although MongoDB is not PostgreSQL and does not have automatic sorting, MongoDB is not MySQL either and even manual sorting is not possible. You try the compact command, if that doesn't work, try repair. I did it before, but I forgot about it now.
Because some data has been deleted. Nothing like a database automatically reduces the file size when data is deleted - this is an extremely expensive operation that requires rewriting the entire file.
But it’s okay. Although MongoDB is not PostgreSQL and does not have automatic sorting, MongoDB is not MySQL either and even manual sorting is not possible. You try the compact command, if that doesn't work, try repair. I did it before, but I forgot about it now.