Last active
June 14, 2019 13:21
-
-
Save tzach/c9782543170fefd479ed1f466c820b70 to your computer and use it in GitHub Desktop.
create a large cell in Scylla using Clojure alia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns cassandra-project.core | |
(:require [qbits.alia :as alia])) | |
(def cluster (alia/cluster {:contact-points ["172.17.0.2"]})) | |
(def session (alia/connect cluster)) | |
(alia/execute session "USE mykeyspace;") | |
(dotimes [n 2000000] | |
(alia/execute session (str "UPDATE mykeyspace.gr SET link = link + {" n " : 'ABC'} WHERE id=1 AND r=1;"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create table and keyspace