Open minamichail opened 1 year ago
Ive been having issues with postgres running out of connections. Checking the connections i can see close to 50 idle connections when the server is sat idle. I was hoping to do some dev work on this app but it seems its barely supported for such a crucial feature. I think its time i hopped off nextcloud and move to a NAS solution as i can't have clients servers going offline like this. I would try to fix the issue myself but im in no way skilled enough to do that.
I have a large nextcloud setup (around 5TB) with most folders primarily group folders. Basically all the files and folders are shared across the company but depending on your group you get different permission per file. I have custom software that connects to nextcloud and using the api it sets the different permission per folders. After using that the setup for a few weeks nextcloud slowed down dramatically and we upgraded our server to a super server just to keep things moving. I did an sql analysis on the number of queries it makes just to get the root path and with group folders plugin enabled it makes around 12000 queries! vs. disabled it makes around 500. I also found one query that was extremely slow and took about 8 seconds to run, please see below. Are we doing something wrong in the setup or is group folders not made to handle so many files?