From abb87fd3a1ae8fd4a13b583f45733019057b3c6d Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Sun, 6 Oct 2013 23:23:34 +0200 Subject: [PATCH] -B also limit number of files scanned for tags --- lib/tags/update | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tags/update b/lib/tags/update index f63387c..515f551 100644 --- a/lib/tags/update +++ b/lib/tags/update @@ -40,7 +40,10 @@ updateTags() { CAST(source_files.last_change AS TEXT) OR ('"$tagreaderclause"') ) - AND mime_type_actions.action = 1; + AND mime_type_actions.action = 1' >&3 +(( maxbatch )) && echo "LIMIT $maxbatch" >&3 +echo ' +; SELECT "AtOM:NoMoreFiles";' >&3 read -u4 line