Skip to content
This repository has been archived by the owner. It is now read-only.

avoid holding full stream in memory #1

Open
wants to merge 1 commit into
base: master
from
Open
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

avoid holding full stream in memory

  • Loading branch information
Mike Blume
Mike Blume committed Nov 27, 2013
commit ccf1cd35cbd8dd18a3cd2bf7079359665ea5b9f0
@@ -61,12 +61,9 @@

(defn make-callback [opts handler]
(fn []
(doall
(map handler
(concat
(map make-doc
(es/scan (:source opts)
(doseq [hit (es/scan (:source opts)
(:query opts)
(:scroll-time opts)
(:scroll-size opts)))
[:eof])))))
(:scroll-size opts))]
(-> hit make-doc handler))
(handler :eof)))
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.