Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blob usage depending on file size #361

Open
georgpfolz opened this issue Apr 24, 2022 · 4 comments
Open

Blob usage depending on file size #361

georgpfolz opened this issue Apr 24, 2022 · 4 comments
Labels

Comments

@georgpfolz
Copy link

Is there a best practice or some first hand experience for which file sizes it makes sense to use Blob storage?

I'm using the blob storage to store files and images, but I wonder if it's maybe better (performance-wise?) to keep small files in the ZODB.

@d-maurer
Copy link
Contributor

d-maurer commented Apr 24, 2022 via email

@jimfulton
Copy link
Member

I think of blobs as persistent files and storage of files, including images is the intended use case.

The work I did on blobs was motivated by the need to store media for which sizes were fairly large.

If you have lots of small files, then there might be a win of storing them directly in database records. The win would be highly use-case specific. As Dieter suggested, you could try to measure performance characteristics for your use case.

@georgpfolz
Copy link
Author

georgpfolz commented Apr 25, 2022

Ok, I understand, it's too use-case specific so a general approach doesn't make sense. But your answer has reinforced my view that considering file size makes sense.

Thanks for the answers and I'll do some measurements! :)

@georgpfolz
Copy link
Author

The first measurements I made suggest that the performance difference is negligible. So I'll probably store all image and file data in blobs, regardless of size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants