Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
12.5-rc-1
-
None
-
Unknown
-
Description
As you can clearly see from the image below, with attachment versioning enabled on filesystem attachments storage, each attachment version ends up to taking the entire space of the file, even in the case when exactly the same file was reuploaded:
- fv1.1.png <-- 498 K (should be 0, compared to 1.2)
- fv1.2.png <-- 498 K (should be 0, compared to 1.3)
- fv1.3.png <-- 498 K (latest version)
Instead, only the latest version should be a complete version of the file contents, while older versions should just be patches holding just the difference.
Now, binary files do risk to end up with very large differences even for small changes, as it is not guaranteed that they are built equally and that similar content produces similar binary result (thus, a small diff content), but it would still be a huge impact for identical versions (0 diff) and for binary files that really are incremental.