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

Amazon S3 Performance #68

Open
overshard opened this issue Mar 17, 2016 · 1 comment
Open

Amazon S3 Performance #68

overshard opened this issue Mar 17, 2016 · 1 comment

Comments

@overshard
Copy link

I've swapped over to using S3 for file storage and, as many know, it's extremely slow with filebrowser. I've taken the time to track the problem down!

The issue is the get_directory() function in filebrowser_safe/functions.py. Hover, I've been extremely lazy and not tracked the issue past this. In my fork I've just deleted everything except for dirname = DIRECTORY and return dirname because I don't use the site system anyways. master...overshard:master

This makes my filebrowser just as fast as if I were storing files natively, a directory of 10k files loads up in less than a second for me, before it would freeze and timeout with more than 5 files in the directory. I believe the problem is too many calls are being made to S3 due to this one function.

Obviously the solution is not what I have here but I wanted to bring this to everyone's attention because I know it's a problem point for many wanting to use S3 and someone can craft a solution based on my discovery. And if other people aren't using the site system you can use this till it actually gets fixed.

@stephenmcd
Copy link
Owner

That's super useful, thank you.

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

No branches or pull requests

2 participants