We have a site collection that has couple of document libraries each having 10K documents. And the content DB assigned to that site collection is showing 280 GB used. But when we check the library size using the following powershell -
$total = $null;
((get-spweb http://sitename/).lists | Where-Object {$_.title -eq "List name"}).items | foreach {$total+= $_.file.length}; $total /1MB
we get 40 GB as total size for both libraries. Are we missing anything, what would be the cause of the remaining size that is being used up in content Db.