diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-10-19 23:22:22 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-11-18 22:24:58 +0100 |
commit | b725c777aa4bd80c6ace3695733b560a320e1250 (patch) | |
tree | 18931fd9ca42a0712047d01cd5560945cb8b8420 /themes | |
parent | 47675515096c14375a748565f8a79fb772fc6715 (diff) | |
download | nextcloud-server-b725c777aa4bd80c6ace3695733b560a320e1250.tar.gz nextcloud-server-b725c777aa4bd80c6ace3695733b560a320e1250.zip |
optimize background image migration job
- separate in two stages: to prepare, and to actually migrate
- in step one, prepare a list of users to be migrated, and store it
compressed as app config
- gzcompress can be used, because we already require zlib
- upon the next calls (step two), slice off the first 5000 users
and migrate them. Re-add job if necessary to repeat.
- downside is that an app config value will in the beginning use the
RAM with any request, until it thins out. Examples: 2m UUIDs (75 MiB)
result in ~40 MiB compressed data, while 0.2Mib for 10 000 UUIDs,
0.4MiB for 20 000 and 4.1 MiB for 200 000. Acceptable.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'themes')
0 files changed, 0 insertions, 0 deletions