From fcfb1515b13de427f173f3b91fffb0e4e84ee943 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 28 Aug 2015 22:20:52 +0200 Subject: [PATCH] local: Lower the default scan_flush_threshold @tkem recommends that this is reduced from 1000 to maximum 100 to not block incoming requests to Mopidy-Local-SQLite for too long while scanning the local library. --- docs/changelog.rst | 4 ++++ mopidy/local/ext.conf | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 741956b9..a507002e 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -29,6 +29,10 @@ Bug fix release. :confval:`core/data_dir`, like the Debian and Arch packages. (Fixes: :issue:`1259`, PR: :issue:`1266`) +- Local: Change default value of :confval:`local/scan_flush_threshold` from + 1000 to 100 to shorten the time Mopidy-Local-SQLite blocks incoming requests + while scanning the local library. + - M3U: Changed default for the :confval:`m3u/playlists_dir` from ``$XDG_DATA_DIR/mopidy/m3u`` to unset, which now means the extension's data dir. This does not change the defaults for desktop users, only system diff --git a/mopidy/local/ext.conf b/mopidy/local/ext.conf index 6dd29147..b37a3a7a 100644 --- a/mopidy/local/ext.conf +++ b/mopidy/local/ext.conf @@ -3,7 +3,7 @@ enabled = true library = json media_dir = $XDG_MUSIC_DIR scan_timeout = 1000 -scan_flush_threshold = 1000 +scan_flush_threshold = 100 scan_follow_symlinks = false excluded_file_extensions = .directory