Slow Display of Virtual Files in Nextcloud

Problem Description:
I recently installed Nextcloud in a company environment that has a folder with over 270 GB of files. The issue isn’t the total size, but rather the massive quantity of small files (XML, PDF, and others) - there are over 1 million files.

When users access this folder through the Nextcloud desktop client, the virtual files take forever to appear in the interface. This is happening on all client machines.

Expected Behavior:
I expected files to appear progressively as the client synchronizes, but in practice there’s extreme slowness before any files are displayed.

Question:
How can I optimize Nextcloud to make virtual files appear more quickly for users, especially considering the large volume of small files?

There are several reports that the initial sync can take some time. They try to work on it, did already a few things, and you can find a few numbers in this thread (and probably in other topic on github or here on the forum)

And in one of the recent versions, there is/was a bug that in the main window of the client, in the connection settings, the bandwidth limitation was engaged even though in the previous version is was not selected. Make sure that you don’t have the upload or download bandwidth limits in place.

Well you can find a few topics on the documentation about caching, question is what have you done already, if you have processes that max out (memory, cpu, i/o operations) when you open new folders and it takes a long time.

Normally we have a template, so it’s good to know which versions you are using, if something is long and takes time, it’s always good to quantify that a bit…

I’ve applied all the necessary optimizations, and I recently deployed the latest stable version of the Nextcloud server and the 4.0.1 client.

So then everything is fine?