Pacific-Design.com

    
Home Index

1. Cassandra

2. Load Data

Cassandra / Load Data /

Load Data into Cassandra


USE engine;

CREATE TABLE user (
  id int,
  first_name text,
  last_name text
  PRIMARY KEY(id, last_name)
) WITH CLUSTERING ORDER BY ( last_name DESC )

COPY user (id, first_name, last_name, city, phone) FROM student_flatfile.csv

Cassandra Stress


$ tools/bin/cassandra-stress write n=100000 -rate threads=25