Commit fcd8b9f1 authored by Eevans's avatar Eevans
Browse files

aqs_schema.cql: sanitize of keyspace/table configuration

parent b64b7181
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_pageviews_per_project_v2" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_pageviews_per_project_v2" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_project_v2".meta (
key text,
......@@ -7,19 +7,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_project_v2".meta
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_project_v2".data (
"_domain" text,
......@@ -33,22 +21,9 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_project_v2".data
v bigint,
views int,
PRIMARY KEY (("_domain", project, access, agent, granularity), timestamp, "_tid")
) WITH CLUSTERING ORDER BY (timestamp ASC, "_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_mediarequest_top_files" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_mediarequest_top_files" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_top_files".meta (
key text,
......@@ -56,19 +31,8 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_top_files".meta (
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_top_files".data (
"_domain" text,
......@@ -81,22 +45,9 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_top_files".data (
"_del" timeuuid,
"filesJSON" text,
PRIMARY KEY (("_domain", referer, media_type, year, month, day), "_tid")
) WITH CLUSTERING ORDER BY ("_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_lgc_pagecounts_per_project" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_lgc_pagecounts_per_project" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_lgc_pagecounts_per_project".meta (
key text,
......@@ -104,19 +55,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_lgc_pagecounts_per_project".me
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_lgc_pagecounts_per_project".data (
"_domain" text,
......@@ -128,22 +67,9 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_lgc_pagecounts_per_project".da
"_del" timeuuid,
count bigint,
PRIMARY KEY (("_domain", project, "access-site", granularity), timestamp, "_tid")
) WITH CLUSTERING ORDER BY (timestamp ASC, "_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_mediarequest_per_file" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_mediarequest_per_file" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_per_file".meta (
key text,
......@@ -151,19 +77,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_per_file".meta (
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_per_file".data (
"_domain" text,
......@@ -176,22 +90,9 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_per_file".data (
spider int,
user int,
PRIMARY KEY (("_domain", referer, file_path, granularity), timestamp, "_tid")
) WITH CLUSTERING ORDER BY (timestamp ASC, "_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'chunk_length_kb': '256', 'sstable_compression': 'org.apache.cassandra.io.compress.DeflateCompressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_top_pageviews" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_top_pageviews" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_top_pageviews".meta (
key text,
......@@ -199,19 +100,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_top_pageviews".meta (
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_top_pageviews".data (
"_domain" text,
......@@ -225,22 +114,9 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_top_pageviews".data (
articles text,
"articlesJSON" text,
PRIMARY KEY (("_domain", project, access, year, month, day), "_tid")
) WITH CLUSTERING ORDER BY ("_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_top_percountry" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_top_percountry" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_top_percountry".meta (
key text,
......@@ -248,19 +124,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_top_percountry".meta (
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_top_percountry".data (
"_domain" text,
......@@ -273,22 +137,9 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_top_percountry".data (
"_del" timeuuid,
articles text,
PRIMARY KEY (("_domain", country, access, year, month, day), "_tid")
) WITH CLUSTERING ORDER BY ("_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_editors_bycountry" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_editors_bycountry" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_editors_bycountry".meta (
key text,
......@@ -296,19 +147,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_editors_bycountry".meta (
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_editors_bycountry".data (
"_domain" text,
......@@ -320,25 +159,11 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_editors_bycountry".data (
"_del" timeuuid,
"countriesJSON" text,
PRIMARY KEY (("_domain", project, "activity-level", year, month), "_tid")
) WITH CLUSTERING ORDER BY ("_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_top_pageviews_bycountry" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_top_pageviews_bycountry" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_mediarequest_per_referer" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_mediarequest_per_referer" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_per_referer".meta (
key text,
......@@ -346,19 +171,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_per_referer".meta
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_per_referer".data (
"_domain" text,
......@@ -371,22 +184,9 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_mediarequest_per_referer".data
"_del" timeuuid,
requests bigint,
PRIMARY KEY (("_domain", referer, media_type, agent, granularity), timestamp, "_tid")
) WITH CLUSTERING ORDER BY (timestamp ASC, "_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_unique_devices" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_unique_devices" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_unique_devices".meta (
key text,
......@@ -394,19 +194,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_unique_devices".meta (
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_unique_devices".data (
"_domain" text,
......@@ -420,22 +208,9 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_unique_devices".data (
offset bigint,
underestimate bigint,
PRIMARY KEY (("_domain", project, "access-site", granularity), timestamp, "_tid")
) WITH CLUSTERING ORDER BY (timestamp ASC, "_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_pageviews_per_article_flat" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_pageviews_per_article_flat" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_article_flat".meta (
key text,
......@@ -443,19 +218,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_article_flat".me
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_article_flat".data (
"_domain" text,
......@@ -482,22 +245,9 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_article_flat".da
mws int,
mwu int,
PRIMARY KEY (("_domain", project, article, granularity), timestamp, "_tid")
) WITH CLUSTERING ORDER BY (timestamp ASC, "_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'chunk_length_kb': '256', 'sstable_compression': 'org.apache.cassandra.io.compress.DeflateCompressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_top_bycountry" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_top_bycountry" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_top_bycountry".meta (
key text,
......@@ -505,19 +255,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_top_bycountry".meta (
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_top_bycountry".data (
"_domain" text,
......@@ -529,22 +267,9 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_top_bycountry".data (
"_del" timeuuid,
"countriesJSON" text,
PRIMARY KEY (("_domain", project, access, year, month), "_tid")
) WITH CLUSTERING ORDER BY ("_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_pageviews_per_project" WITH replication = {'class': 'NetworkTopologyStrategy', 'eqiad': '3'} AND durable_writes = true;
);
CREATE KEYSPACE IF NOT EXISTS "local_group_default_T_pageviews_per_project" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_project".meta (
key text,
......@@ -552,19 +277,7 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_project".meta (
"_del" timeuuid,
value text,
PRIMARY KEY (key, tid)
) WITH CLUSTERING ORDER BY (tid DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_project".data (
"_domain" text,
......@@ -578,17 +291,6 @@ CREATE TABLE IF NOT EXISTS "local_group_default_T_pageviews_per_project".data (
v bigint,
views int,
PRIMARY KEY (("_domain", project, access, agent, granularity), timestamp, "_tid")
) WITH CLUSTERING ORDER BY (timestamp ASC, "_tid" DESC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys':'ALL', 'rows_per_partition':'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99.0PERCENTILE';
);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment