How to improve ajax request performance


Im running my nextcloud in docker on an pi 4.
The problem is with the preview, when opening a folder with images, all previews needs to be generated. already had a loth of previews pregenerated, but when there is no pre generated preview it does multiple AJAX calls for the previews. All those AJAX calls will full the full server capacity of my pi, maily because the resizing takes long because of the large photo file sizes.

Is there any way to just queue the preview so it will not do all the requests at te same time, of anothe way to speed up the preview generating process.

Perhaps you like disabling or configure preview.