Binaries Size vs. Artifacts Size

ARTIFACTORY: how to get binary size of a repository

AuthorFullName__c
Jian Sun
articleNumber
000005698
ft:sourceType
Salesforce
FirstPublishedDate
2023-04-27T15:52:52Z
lastModifiedDate
2023-04-27
VersionNumber
3
As you may already know there are two different sizes: Binaries Size and Artifacts Size.

Binaries Size: The amount of physical storage occupied by the binaries in your system.

Artifacts Size: The amount of physical storage that would be occupied if each artifact was a physical binary (not just a link).

The reason we don't also provide the binaries size per repo is because it technically doesn't exist. If you calculate binary by repository, it is possible to double count between different repositories.

As we all know, Artifactory uniquely stores artifacts using checksum-based storage.

Artifactory stores any binary file only once. This is what we call "once and once only storage".

The first time a file is uploaded, Artifactory runs the required checksum calculations when storing the file, however, if the file is uploaded again (to a different location/repository, for example), the upload is implemented as a simple database transaction that creates another record mapping the file's checksum to its new location.

User-added image