Owner | BlobSizeInMB |
---|---|
VersionControl | 465.943.098.090.170.000 |
FileContainer | 92.787.492.652.892.500 |
WorkItemTracking | 27.767.974.014.282.200 |
TeamTest | 1.720.532.615.661.130 |
CodeSense | 1.463.450.324.057.610 |
Generic | 376.622.010.230.468 |
ProcessTemplate | 14.624.096.870.117 |
-
-
Save riezebosch/aba1322289aef2ea3e56c00a7820bba5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT Owner = CASE | |
WHEN OwnerId = 0 THEN 'Generic' | |
WHEN OwnerId = 1 THEN 'VersionControl' | |
WHEN OwnerId = 2 THEN 'WorkItemTracking' | |
WHEN OwnerId = 3 THEN 'TeamBuild' | |
WHEN OwnerId = 4 THEN 'TeamTest' | |
WHEN OwnerId = 5 THEN 'Servicing' | |
WHEN OwnerId = 6 THEN 'UnitTest' | |
WHEN OwnerId = 7 THEN 'WebAccess' | |
WHEN OwnerId = 8 THEN 'ProcessTemplate' | |
WHEN OwnerId = 9 THEN 'StrongBox' | |
WHEN OwnerId = 10 THEN 'FileContainer' | |
WHEN OwnerId = 11 THEN 'CodeSense' | |
WHEN OwnerId = 12 THEN 'Profile' | |
WHEN OwnerId = 13 THEN 'Aad' | |
WHEN OwnerId = 14 THEN 'Gallery' | |
WHEN OwnerId = 15 THEN 'BlobStore' | |
WHEN OwnerId = 255 THEN 'PendingDeletion' | |
END, | |
SUM(CompressedLength) / 1024.0 / 1024.0 AS BlobSizeInMB | |
FROM tbl_FileReference AS r | |
JOIN tbl_FileMetadata AS m | |
ON r.ResourceId = m.ResourceId | |
AND r.PartitionId = m.PartitionId | |
WHERE r.PartitionId = 1 | |
GROUP BY OwnerId | |
ORDER BY 2 DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment