How to find watchlist that require tuning.
Syntax issues in the query.
psql -p 5002 cb -c "COPY (select id, duration_ms, query_id, cluster_node_id, timestamp, result_count, original_query from solr_query_execution where query_source = 'watchlist' order by duration_ms desc) TO '/tmp/watchlist_execution_times.csv' with CSV HEADER;"
psql -p 5002 cb -c "COPY (select * from watchlist_entries where group_id = '-1' and enabled = 't') TO '/tmp/watchlist_entries.csv' with CSV HEADER;"
cat var/log/cb/solr/debug.log | egrep 'path.*filewrite_md5.*crossproc_type.*blocked_md5' | grep 'watchlist_' | sed -e 's/last_server_update:{[^}]*}//g' | sort -u