-
Currently the only optimization of the PostgreSQL container is adjusting the amount of maximum connections to the database. The tool PgTune helps to optimize the following parameters of PostgreSQL:
The implemention for the calculations can be found here. Maybe some of those considerations are also relevant for the default PostgreSQL container. What do you think? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 17 replies
-
Hi, in general I would accept PRs that add some optimizations based on the hardware postgres runs on but this would need to be done automatically since I don't want to add config options for this. Also I just wanted to mention that I will not be able to work on this in the coming months. So if this can be done in an automated way and maybe keep the logic in the upstream project without forking things, a contribution would be very welcome :) |
Beta Was this translation helpful? Give feedback.
-
Btw, on which AIO version are you currently? Also why do you think that postgres performance optimizations are necessary in AIO and can you proove that with some testing in Nextcloud? |
Beta Was this translation helpful? Give feedback.
-
Leaving this here in order to find it more easily later:
|
Beta Was this translation helpful? Give feedback.
I agree.
Possibly you could try
php occ files:scan --all -q
if it does not take too long. Otherwise you could try it with a specific user like sophp occ files:scan <userid> -q
.These are the two most important commands that currently come into my mind that require fast database operation. So if the files:scan command also does not produce big differences, I would vote for not implementing this.