OneDrive File Issues

How to Optimize OneDrive Sync Performance for Over 500,000 Files

Kushani NimanthikaKushani Nimanthika Oct 21, 2026 872 views

Question details

The user is attempting to sync more than 500,000 files via OneDrive and needs a way to optimize performance to prevent the client from hanging or continuously syncing.

How to Optimize OneDrive Sync Performance for Over 500,000 Files
Product
OneDrive
Device & OS
not provided
Scenario
Using the OneDrive sync client to manage an extremely large repository of files (exceeding 500,000 items), even with Files On-Demand activated.
Observed behavior
The OneDrive client experiences severe performance degradation and continuous synchronization loops due to the sheer volume of files being indexed.
Before you start

Before making structural changes to your storage, verify your exact file count by viewing the properties of your synced folders to confirm you are exceeding the recommended limits.

Solution 1Recommended

Migrate Excessive Files to a Network Share

Move large, shared, or infrequently accessed directories to a network share to bypass the local OneDrive sync limits.

OneDrive is officially designed to handle up to 300,000 synced items across all synchronized libraries. When exceeding this threshold, the sync engine struggles to process metadata changes efficiently, leading to continuous sync loops and high CPU usage.

To resolve this, enterprise environments should offload files from local OneDrive synchronization to centralized network storage.

1
Identify files to offload

Review your OneDrive and SharePoint document libraries to identify large archives or department folders that do not require offline access.

2
Deploy a network share

Work with your IT administrator to set up a traditional network share or an enterprise file-access solution like Azure Files.

3
Map the network drive

Map the new network share directly in File Explorer so users can access the files seamlessly without relying on the local OneDrive sync client.

4
Stop syncing offloaded folders

Open OneDrive Settings, navigate to the Account tab, click 'Choose folders', and uncheck the libraries you have migrated to the network share.

Migrate Excessive Files to a Network Share
Files On-Demand Limitation: While the Files On-Demand feature saves local disk space, it does not reduce the number of items the OneDrive client must track. Performance will still degrade if the total tracked item count exceeds 300,000.
Free Microsoft Office alternative

Boost Productivity with WPS Office

While resolving heavy cloud sync limitations within the Microsoft ecosystem, consider switching to WPS Office for your daily document tasks. It provides a lightweight, seamless experience with robust compatibility for all your existing files, without the heavy system drag.

Lightweight installation that won't bog down your system's performance.Fully compatible with Microsoft Office formats, including Word, Excel, and PowerPoint.Seamlessly open, edit, and save files directly to any local or mapped network drive.Free to use with a familiar, easy-to-navigate user interface that requires zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Does enabling Files On-Demand fix the 300,000 file limit in OneDrive?

No. While Files On-Demand is excellent for saving local hard drive space by keeping files in the cloud until needed, the OneDrive sync client still has to process and index the metadata for every single file. If you have over 300,000 items, the client's performance will still degrade significantly.

How can I check how many files I am currently syncing in OneDrive?

You can check your total file count by opening File Explorer, right-clicking your primary OneDrive or SharePoint synced folder, and selecting 'Properties'. Look at the 'Contains' metric, which will display the total number of files and folders currently being indexed by Windows.

What is the recommended way to handle millions of files for enterprise users?

Instead of relying on local OneDrive synchronization, enterprise environments with millions of files should utilize mapped network drives, split massive libraries across multiple independent SharePoint sites, or deploy dedicated enterprise file servers to prevent client-side bottlenecks.

Can WPS Office directly open files from my local OneDrive folder?

Yes. WPS Office integrates seamlessly with your local file system. You can open, edit, and save documents directly to your local OneDrive folders or any newly mapped network shares just like you would with any standard local directory.