Advertisement
Guest User

Untitled

a guest
May 29th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. CREATE KEYSPACE identification_prod WITH replication = {'class': 'NetworkTopologyStrategy', 'DC1': '2', 'DC2': '1'} AND durable_writes = false;
  2.  
  3. CREATE TABLE identification_prod.uqi (
  4. i_name text,
  5. i_value text,
  6. start_key bigint,
  7. end_key bigint,
  8. PRIMARY KEY ((i_name, i_value), start_key, end_key)
  9. ) WITH CLUSTERING ORDER BY (start_key ASC, end_key ASC)
  10. AND bloom_filter_fp_chance = 0.01
  11. AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
  12. AND comment = ''
  13. AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32'}
  14. AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
  15. AND dclocal_read_repair_chance = 0.1
  16. AND default_time_to_live = 0
  17. AND gc_grace_seconds = 864000
  18. AND max_index_interval = 2048
  19. AND memtable_flush_period_in_ms = 0
  20. AND min_index_interval = 128
  21. AND read_repair_chance = 0.0
  22. AND speculative_retry = '99.0PERCENTILE';
  23.  
  24. CREATE TABLE identification_prod.user_data_idx (
  25. creation_key bigint,
  26. page_number int,
  27. i_name text,
  28. i_value text,
  29. PRIMARY KEY ((creation_key, page_number), i_name, i_value)
  30. ) WITH CLUSTERING ORDER BY (i_name ASC, i_value ASC)
  31. AND bloom_filter_fp_chance = 0.1
  32. AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
  33. AND comment = ''
  34. AND compaction = {'min_threshold': '4', 'cold_reads_to_omit': '0.0', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32'}
  35. AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
  36. AND dclocal_read_repair_chance = 0.1
  37. AND default_time_to_live = 0
  38. AND gc_grace_seconds = 864000
  39. AND max_index_interval = 2048
  40. AND memtable_flush_period_in_ms = 0
  41. AND min_index_interval = 128
  42. AND read_repair_chance = 0.0
  43. AND speculative_retry = '99.0PERCENTILE';
  44.  
  45. CREATE TABLE identification_prod.uqr (
  46. i_name text,
  47. i_value text,
  48. start_key bigint,
  49. end_key bigint,
  50. PRIMARY KEY ((i_name, i_value), start_key, end_key)
  51. ) WITH CLUSTERING ORDER BY (start_key ASC, end_key ASC)
  52. AND bloom_filter_fp_chance = 0.01
  53. AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
  54. AND comment = ''
  55. AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32'}
  56. AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
  57. AND dclocal_read_repair_chance = 0.1
  58. AND default_time_to_live = 0
  59. AND gc_grace_seconds = 864000
  60. AND max_index_interval = 2048
  61. AND memtable_flush_period_in_ms = 0
  62. AND min_index_interval = 128
  63. AND read_repair_chance = 0.0
  64. AND speculative_retry = '99.0PERCENTILE';
  65.  
  66. CREATE TABLE identification_prod.user_data (
  67. i_name text,
  68. i_value text,
  69. type int,
  70. creation_key bigint,
  71. input_id text,
  72. data text,
  73. identifiers text,
  74. on_boarded boolean,
  75. origin text,
  76. prefix text,
  77. sub_prefix text,
  78. PRIMARY KEY ((i_name, i_value), type, creation_key, input_id)
  79. ) WITH CLUSTERING ORDER BY (type ASC, creation_key ASC, input_id ASC)
  80. AND bloom_filter_fp_chance = 0.1
  81. AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
  82. AND comment = ''
  83. AND compaction = {'min_threshold': '4', 'cold_reads_to_omit': '0.0', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32'}
  84. AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
  85. AND dclocal_read_repair_chance = 0.1
  86. AND default_time_to_live = 0
  87. AND gc_grace_seconds = 864000
  88. AND max_index_interval = 2048
  89. AND memtable_flush_period_in_ms = 0
  90. AND min_index_interval = 128
  91. AND read_repair_chance = 0.0
  92. AND speculative_retry = '99.0PERCENTILE';
  93.  
  94. CREATE TABLE identification_prod.imported_data (
  95. import_id bigint,
  96. page_number int,
  97. i_name text,
  98. i_value text,
  99. input_id text,
  100. data text,
  101. identifiers text,
  102. on_boarded boolean,
  103. origin text,
  104. prefix text,
  105. sub_prefix text,
  106. type int,
  107. PRIMARY KEY ((import_id, page_number), i_name, i_value, input_id)
  108. ) WITH CLUSTERING ORDER BY (i_name ASC, i_value ASC, input_id ASC)
  109. AND bloom_filter_fp_chance = 0.0001
  110. AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
  111. AND comment = ''
  112. AND compaction = {'min_threshold': '4', 'cold_reads_to_omit': '0.00', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32'}
  113. AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
  114. AND dclocal_read_repair_chance = 0.1
  115. AND default_time_to_live = 0
  116. AND gc_grace_seconds = 864000
  117. AND max_index_interval = 2048
  118. AND memtable_flush_period_in_ms = 0
  119. AND min_index_interval = 128
  120. AND read_repair_chance = 0.0
  121. AND speculative_retry = '99.0PERCENTILE';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement