Skip to content

Instantly share code, notes, and snippets.

@wrobstory
Last active August 29, 2015 14:12
Show Gist options
  • Save wrobstory/1d0eade9cc5110db6005 to your computer and use it in GitHub Desktop.
Save wrobstory/1d0eade9cc5110db6005 to your computer and use it in GitHub Desktop.
Incanter $where 1M rows
user=> (require '[clojure.test.check.generators :as gen])
nil
user=> (require 'incanter.core)
nil
user=> (def one-mil-longs (gen/sample (gen/choose 0 10) 1000000))
#'user/one-mil-longs
user=> (def one-mil-incanter (incanter.core/dataset {:one-mil one-mil-longs}))
#'user/one-mil-incanter
;; This completely locks my REPL
user=> (def where-two (incanter.core/$where {:one-mil 2} one-mil-incanter))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment