SHARE
TWEET

Untitled

a guest Jun 25th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (ns cassandra-project.core
  2.   (:require [qbits.alia :as alia]))
  3.  
  4.  
  5. (def cluster (alia/cluster {:contact-points ["172.17.0.2"]}))
  6. (def session (alia/connect cluster))
  7. (alia/execute session "USE mykeyspace;")
  8. (dotimes [n 2000000]
  9.   (alia/execute session (str "UPDATE mykeyspace.gr SET link = link + {" n " : 'ABC'} WHERE id=1 AND r=1;")))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top