# Virtual files. Initial sync very slow

**URL:** <https://help.nextcloud.com/t/virtual-files-initial-sync-very-slow/116661>\
**Category:** 💻 Desktop\
**Tags:** github\_issue\_exists, nc19, vfs\
**Created:** [May 19, 2021, 11:01pm UTC](https://help.nextcloud.com/t/virtual-files-initial-sync-very-slow/116661 "2021-05-19T23:01:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wonx](https://help.nextcloud.com/letter_avatar/wonx/32/5_5575768a8748004e209b776fc1b2916d.png) [@wonx](https://help.nextcloud.com/u/wonx)\
**Post date:** [May 19, 2021, 11:01pm UTC](https://help.nextcloud.com/t/virtual-files-initial-sync-very-slow/116661/1 "2021-05-19T23:01:35Z")

</div>

Hello,

I am using Nextcloud 19.0.2 on a docker container, in a machine that I use as a NAS. Most of the relevant folders are added using the External Storage plugin.

Today, I discovered that Virtual Files is a new feature and it’s available in the client. So I downloaded the last client available (3.2.1) and installed it, selecting the Virtual Files option.

I have a lot of information, around 3TB, more than what a single computer can handle, so until now I just synchronized a few directories. But with virtual files, in theory I could see all files and only download those that I want.

So, I started the client, started syncing, starting checking for changes for every folder… and it took several hours to do the initial sync. There were some errors related to the “placeholders”. In the Nextcloud folder, I could only see a few of the folders I sync.

I decided to restart the client. And it started checking for changes, folder by folders, from the beginning. I guess I will have to wait a few hours again. I don’t know if that initial sync started again because the previous scan could not finish, or if it will happen every time. If it’s the latter, it will be unusable.

Is this normal? Is it my fault for having so many files? Does it has anything to do with using External Storage?

Thanks for your time.

Edit: I just noticed. If it open one of the few files that seem to have been synced correctly, the initial scan starts all over again from the beginning.

---

<div class="post-metadata">

**Author:** ![LMaiorano](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lmaiorano/32/38787_2.png) [@LMaiorano](https://help.nextcloud.com/u/LMaiorano)\
**Post date:** [June 7, 2021, 10:25am UTC](https://help.nextcloud.com/t/virtual-files-initial-sync-very-slow/116661/2 "2021-06-07T10:25:29Z")

</div>

Hi,

I’ve noticed this too, Nextcloud also consumes significant CPU resources in the background. I decided to delete all files and completely reinstall Nextcloud on my client computer. I selected “virtual files only” with the hope that no files will actually need to be downloaded, thus speeding up the initial sync.

However, it’s been stuck on "Preparing to Sync for 3 hours now. (~250GB of files, and internet speed is not an issue)

Is there a way to speed this up?

Thanks!

Edit: Nexcloud v20.0.10 and Windows Desktop Client v3.2.2

---

<div class="post-metadata">

**Author:** ![wonx](https://help.nextcloud.com/letter_avatar/wonx/32/5_5575768a8748004e209b776fc1b2916d.png) [@wonx](https://help.nextcloud.com/u/wonx)\
**Post date:** [October 20, 2021, 10:12am UTC](https://help.nextcloud.com/t/virtual-files-initial-sync-very-slow/116661/3 "2021-10-20T10:12:51Z")

</div>

If anyone is interested, what I did is exclude the largest folders from the sync (editing the exclusion list from the gui), and waiting the sync to finish. When it finishes, one by one start adding the large folders, until it finishes syncing each time. It’s a very time consuming process, but it’s the only way I have found.

---

<div class="post-metadata">

**Author:** ![mrtrevisan](https://help.nextcloud.com/letter_avatar/mrtrevisan/32/5_5575768a8748004e209b776fc1b2916d.png) [@mrtrevisan](https://help.nextcloud.com/u/mrtrevisan)\
**Post date:** [October 29, 2021, 4:06pm UTC](https://help.nextcloud.com/t/virtual-files-initial-sync-very-slow/116661/4 "2021-10-29T16:06:36Z")

</div>

Any news on this? I’m running client version 3.3.5 Mac OS with “experimental” virtual files enabled.  
I also noticed it checks recursively the entire folders I’m in.  
I see no need to do that, just check the first level and start syncing that level only… what’s the point in checking the entire tree? That’s not a “lazy” operation at all 😉

Regards,  
Marco

---

<div class="post-metadata">

**Author:** ![ne0h](https://help.nextcloud.com/letter_avatar/ne0h/32/5_5575768a8748004e209b776fc1b2916d.png) [@ne0h](https://help.nextcloud.com/u/ne0h)\
**Post date:** [July 23, 2022, 12:04pm UTC](https://help.nextcloud.com/t/virtual-files-initial-sync-very-slow/116661/5 "2022-07-23T12:04:58Z")

</div>

Any news? I have the same issue with about 550k files on Windows 10 with virtual drive.

---

<div class="post-metadata">

**Author:** ![f9fjd](https://help.nextcloud.com/letter_avatar/f9fjd/32/5_5575768a8748004e209b776fc1b2916d.png) [@f9fjd](https://help.nextcloud.com/u/f9fjd)\
**Post date:** [October 31, 2024, 1:55am UTC](https://help.nextcloud.com/t/virtual-files-initial-sync-very-slow/116661/6 "2024-10-31T01:55:25Z")

</div>

that’s the issue:

> <https://github.com/nextcloud/desktop/issues/4424>
>
> \<!--
> Thanks for requesting a feature for Nextcloud!
> 
> This is the \*\*issue trac…ker of Nextcloud\*\*, please do NOT use this to get answers to your questions or get help for fixing your installation. You can find help debugging your system on our home user forums: https://help.nextcloud.com or, if you use Nextcloud in a large organization, ask our engineers on https://portal.nextcloud.com. See also https://nextcloud.com/support for support options.
> 
> Guidelines for submitting features:
> 
> \* Please search the existing features first, it's likely that your feature was already requested or even implemented.
> - Go to https://github.com/nextcloud and type any word in the top search/command bar. You probably see something like "We couldn’t find any repositories matching ..." then click "Issues" in the left navigation.
> - You can also filter by appending e. g. "state:open" to the search string.
> - More info on search syntax within github: https://help.github.com/articles/searching-issues
>     
> \* Please fill in as much of the template below as possible.
> 
> \* Also note that we have a https://nextcloud.com/contribute/code-of-conduct/ that applies on Github. To summarize it: be kind. We try our best to be nice, too. If you can't be bothered to be polite, please just don't bother to report issues as we won't feel motivated to help you. 
> \--\>
> 
> 
> 
> \### How to use GitHub
> 
> \* Please use the 👍 \[reaction\](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to show that you want to have the same feature implemented.
> \* Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
> \* Subscribe to receive notifications on status change and new comments. 
> 
> 
> \### Feature description
> When using virtual files, the first log in after a new installation will start a syncing process that can take a very long time depending on the number of files to synchronize. 
> 
> In my case, i'm syncing around ~700000 files, my computer has been already up for 29 hours without a restart and the sync process has now reached the 50% mark. I can see that the virtual files are created one by one, but it can be as slow as 2 per second. Two or more days until Nextcloud can be usable is too much in my opinion.
> 
> It would be cool if there was any way to speed up the initial sync.
> 
> PS: This is related to https://github.com/nextcloud/desktop/issues/4421

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [June 7, 2025, 8:20pm UTC](https://help.nextcloud.com/t/virtual-files-initial-sync-very-slow/116661/7 "2025-06-07T20:20:50Z")

</div>


