// troubleshooting guide · owncloud

Why Is ownCloud Sync So Slow With Many Small Files?

Status
Ongoing
platforms:
Windows, macOS, Linux; self-hosted servers
updated:
November 16, 2026
reports:
4
Method
how we research
Share

RUNBOOK · owncloud/slow-sync-many-small-files4 FIXES

// quick answer

Each file is a separate request with database and lock work on a Classic server. Add Redis for locking and caching, tune the database, use SSDs and split huge folders; Infinite Scale or Seafile handle this better.

Most likely fix: Add caching and Redis locking

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Add caching and Redis locking

    1. 01Set memcache.local to APCu
    2. 02Set memcache.locking to Redis in config.php
    3. 03Restart PHP-FPM
    Did this fix it?
  2. FIX 2Tune the database and storage

    1. 01Increase the InnoDB buffer pool
    2. 02Move the data directory and database to SSDs
    Did this fix it?
  3. FIX 3Split the sync

    1. 01Use selective sync to add very large folders in batches
    2. 02Exclude build output, node_modules and caches
    Did this fix it?
  4. FIX 4Consider Infinite Scale

    1. 01oCIS has no database and handles metadata on the filesystem; test it for large file counts
    Did this fix it?

Symptoms

Syncing tens of thousands of small files takes hours, the client sits at 'looking for changes', and server CPU spikes.

Why it happens

  • C-01No memory cache (APCu/Redis) and locking in the database
  • C-02Untuned MySQL/MariaDB on spinning disks
  • C-03Very large folders forcing long discovery
  • C-04Antivirus scanning each new file on the client

// this guide also covers

  • owncloud sync slow
  • why is owncloud so slow
  • owncloud many small files
  • owncloud looking for changes

Still not working?

If ownCloud keeps failing, you're not alone. See every ownCloud problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch ownCloud Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All sync failures guides →

Other ownCloud errors

All 12 ownCloud errors and fixes →