How to Optimize OneDrive Sync Performance for Over 500,000 Files
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.

- 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 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.
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.
Review your OneDrive and SharePoint document libraries to identify large archives or department folders that do not require offline access.
Work with your IT administrator to set up a traditional network share or an enterprise file-access solution like Azure Files.
Map the new network share directly in File Explorer so users can access the files seamlessly without relying on the local OneDrive sync client.
Open OneDrive Settings, navigate to the Account tab, click 'Choose folders', and uncheck the libraries you have migrated to the network share.

Consult Microsoft Support for Architecture Planning
Engage Microsoft 365 enterprise support to redesign your SharePoint and OneDrive storage architecture.
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.

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.




