Skip to content

Make cached blob cache lazy to avoid eager duplication on copy - #528

Open
wesleybl wants to merge 1 commit into
zodb:masterfrom
wesleybl:issue-527
Open

Make cached blob cache lazy to avoid eager duplication on copy#528
wesleybl wants to merge 1 commit into
zodb:masterfrom
wesleybl:issue-527

Conversation

@wesleybl

@wesleybl wesleybl commented Sep 2, 2026

Copy link
Copy Markdown

With shared_blob_dir=False the blob_dir is a cache and blobs live in the DB.finish() previously moved every stored blob into the cache, so Copy/Paste duplicated gigabytes on disk before first access. Change CachedBlobHelper to clean temp files on finish and populate the cache only on loadBlob/download.

Closes #527

@wesleybl

wesleybl commented Sep 2, 2026

Copy link
Copy Markdown
Author

@jamadden Could you take a look, please?

With shared_blob_dir=False the blob_dir is a cache and blobs live in
the DB. finish() previously moved every stored blob into the cache,
so Copy/Paste duplicated gigabytes on disk before first access.
Change CachedBlobHelper to clean temp files on finish and populate
the cache only on loadBlob/download.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copying ZODB objects with blobs unnecessarily duplicates blobs in the local blob cache

1 participant