Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. keyspace: perftesting
  2.  
  3. keyspace_definition:
  4. CREATE KEYSPACE perftesting WITH replication = { 'class': 'SimpleStrategy', 'replication_factor': 3};
  5.  
  6. table: users
  7.  
  8. table_definition:
  9.  
  10. CREATE TABLE users (
  11. username text,
  12. first_name text,
  13. last_name text,
  14. password text,
  15. email text,
  16. last_access timeuuid,
  17. PRIMARY KEY(username)
  18. );
  19.  
  20. extra_definitions:
  21. - CREATE MATERIALIZED VIEW perftesting.users_by_first_name AS SELECT * FROM perftesting.users WHERE first_name IS NOT NULL and username IS NOT NULL PRIMARY KEY (first_name, username);
  22. - CREATE MATERIALIZED VIEW perftesting.users_by_first_name2 AS SELECT * FROM perftesting.users WHERE first_name IS NOT NULL and username IS NOT NULL PRIMARY KEY (first_name, username);
  23. - CREATE MATERIALIZED VIEW perftesting.users_by_first_name3 AS SELECT * FROM perftesting.users WHERE first_name IS NOT NULL and username IS NOT NULL PRIMARY KEY (first_name, username);
  24.  
  25. columnspec:
  26. - name: username
  27. size: uniform(10..30)
  28. - name: first_name
  29. size: fixed(16)
  30. - name: last_name
  31. size: uniform(1..32)
  32. - name: password
  33. size: fixed(80) # sha-512
  34. - name: email
  35. size: uniform(16..50)
  36. - name: startdate
  37. cluster: uniform(20...40)
  38. - name: description
  39. size: gaussian(100...500)
  40.  
  41. insert:
  42. partitions: fixed(10)
  43. batchtype: UNLOGGED
  44.  
  45. queries:
  46. read1:
  47. cql: select * from users where username = ? and startdate = ?
  48. fields: samerow # samerow or multirow (select arguments from the same row, or randomly from all rows in the partition)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement