-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Initial face preview generation hang Nextcloud #193
Comments
Hello @Petahh We originally intended to use the browser cache, but having the faces of all your photos in the browser can be questionable.. As you observed, they are dynamically loaded as you move the viewport, but the faces are so small that you easily have 100 faces in sight at all times (This is 100 calls in parallel to your server). and if you scroll to the end of the page, it will try to load all your faces, which can be an important load for your server. In principle, I never wanted to cache the server side because I think that this view should not exist (It would be for a long discussion 😉 ), and writing millions of small images on your disk, also would be an important load for your server, since writing to disk is even more expensive.. Well, we currently use Lozad.js to load the images dynamically. My first idea would be to look for an alternative that limits the loading of images to a certain number in parallel, but of course it is not a real solution to the problem.
Sorry for that! 😓 |
No worries @matiasdelellis , I managed to generate all by slowly scrolling down in small window. Now it works like charm. It’s something which definitely needs to be improved for future. |
Although it is difficult, if it advances, we can do something similar .. |
Why not to use standard Previews folder of Nextcloud and just added there Or create new - own face previews folder. E.g. . |
Could't find anything under #433... |
Sorry.. 😅 |
The load is still high in some parts, but as for this report, I consider it fixed in last release.. Thanks for everything!! |
Hello All, when I access the recognized face those little square previews of faces start to load for the very first time, often the whole instance of Nextcloud freeze.
I'm using debian/apache version of Nextcloud with MariaDB, Redis with 4GB of RAM.
So I found that when I go line by line it loads in mannered fashion, but If I maximize and it tries to load all of the previews at once (for the first time) it works only unlit eats all the memory then hangs. Is there any way how to pace these previews or pre-generate all manually?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: