I use an asynchronous helm source (a process) to query a database and want to use helm search to restrict the matches. Currently I start helm with something like that:
(helm :sources (helm-build-async-source "query" :candidates-process #'cc-query :candidate-transformer #'helm-cc--candidates-formatter :action '(("find file" . helm-cc--action-find-files) ("save results in buffer" . helm-cc--action-save-buffer) ("compare" . helm-cc--action-ediff-files))) :buffer "*helm async source*")) And cc-query is not much more than a start-process.
That works so far, however, the query is very very slow and is restarted with each pattern change. Can I avoid this restart?
Note: I use the asynchronous source, because I do not want to wait for the query to be finished.