sessionm-cassandra_object 4.0.13 → 4.0.14
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d5b8754c020a2164f225fb51980c0ed60355a70
|
4
|
+
data.tar.gz: 86039a18effac02bf7b388419e162c8dbd20b852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b033ec8fb81bb806f0633b97aec8b18066659f41631386d969c086d505db2d93ae4daa9fc51e5ebf44a6ce8dc2bd11901a66b3f4e9ea1e79b2d0c6cdefce5342
|
7
|
+
data.tar.gz: 74edbed2735249853f0dfed08b287cc95bdc9b8905e376998609cacc584a6c73d285eb469177864249d18328bc14521999939051c72c13f2465863427df18e40
|
@@ -227,7 +227,7 @@ module CassandraObject
|
|
227
227
|
end
|
228
228
|
|
229
229
|
def add_column_family(column_family)
|
230
|
-
value_type = column_family.
|
230
|
+
value_type = column_family.default_validation_class == 'CounterColumnType' ? 'counter' : 'text'
|
231
231
|
|
232
232
|
query = <<-CQL
|
233
233
|
CREATE TABLE "#{column_family.name}" (
|
@@ -235,7 +235,21 @@ CREATE TABLE "#{column_family.name}" (
|
|
235
235
|
column1 text,
|
236
236
|
value #{value_type},
|
237
237
|
PRIMARY KEY (key, column1)
|
238
|
-
)
|
238
|
+
) WITH COMPACT STORAGE
|
239
|
+
AND CLUSTERING ORDER BY (column1 ASC)
|
240
|
+
AND bloom_filter_fp_chance = 0.1
|
241
|
+
AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
|
242
|
+
AND comment = ''
|
243
|
+
AND compaction = {'sstable_size_in_mb': '160', 'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
|
244
|
+
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.SnappyCompressor'}
|
245
|
+
AND dclocal_read_repair_chance = 0.1
|
246
|
+
AND default_time_to_live = 0
|
247
|
+
AND gc_grace_seconds = 864000
|
248
|
+
AND max_index_interval = 2048
|
249
|
+
AND memtable_flush_period_in_ms = 0
|
250
|
+
AND min_index_interval = 128
|
251
|
+
AND read_repair_chance = 0.0
|
252
|
+
AND speculative_retry = 'NONE';
|
239
253
|
CQL
|
240
254
|
|
241
255
|
self.execute(query)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sessionm-cassandra_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doug Youch
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Cassandra ActiveModel
|
15
15
|
email: doug@sessionm.com
|