Disabling File Indexing on Default Media Folders

If you have thousands of photos and movie files that are added into the /photo share, then this will trigger the indexer to create thumbnails and re-encode videos.  This process is very CPU intensive and can take hours (sometimes days).


This will happen, regardless of whether or not you choose to not enable indexing on that folder.

Credit to:  http://www.mcleanit.ca/blog/synology-fix-frozen-index/

which describes how you can stop the process and clear the conversion queue.

cd /var/spool
synoservicectl --stop synoindexd

When you edit/add/delete files, they are automatically logged in the syno_indexing_queue file. When the indexing service is triggered, it renames it syno_indexing_queue.tmp while it processes it (which can take a while if it hasn’t been triggered in a long time). In the meantime while it’s processing the .tmp file, any subsequent changes will go to a new syno_indexing_queue file.

The bottom line is if you see this .tmp file, theoretically the indexer is already processing it. If you see a syno_indexing_queue file but no syno_indexing_queue.tmp, then the indexer hasn’t been triggered and can be triggered manually with the command above.

You can safely delete all the files in the /var/spool directory, or if you don’t feel comfortable with that, then move the files into another location.

3 thoughts on “Disabling File Indexing on Default Media Folders

  1. Mmmh okay, this article needs an update as of 2021 🙂

    These days, with DSM 7.0 Beta on the forge and probably coming out soon, Synology has moved everything to use systemd for overall system management. This means that there is just one command for everything — systemctl. In many cases, the configuration files will point to the ‘old’ commands, thus allowing a somewhat easy transition… but many of the ‘old’ commands are either missing or don’t work any longer.

    One disadvantage that I’ve found is that it’s much harder to turn off all the indexing. You have to disable a lot of indexing dæmons (and there are a ton of those!).

    Also, beware of deleting everything inside /var/spool. I found quite a lot of non-indexing stuff in there. I have no idea if they’re useful/needed but… caveat utilitor. It’s better to be conservative and either move them out and see if nothing has broken, or, well, just delete the *.tmp files and keep the rest…

    In any case, thanks for the many suggestions!

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s