AH
Size: a a a
AH
ak
AH
M
ak
AH
CREATE TABLE smartpricing.item_prices (
item_id bigint,
price_offer_id text,
end_date timestamp,
start_date timestamp,
offer_id text,
price decimal,
promo_id uuid,
PRIMARY KEY (item_id, price_offer_id, end_date, start_date)
) WITH CLUSTERING ORDER BY (price_offer_id ASC, end_date ASC, start_date ASC)
AND bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
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 = '99PERCENTILE';
CREATE INDEX item_prices_end_date ON smartpricing.item_prices (end_date);
CREATE INDEX item_prices_start_date ON smartpricing.item_prices (start_date);
CREATE INDEX idx_promo_id ON smartpricing.item_prices (promo_id);
AH
AH
M
AH
AH
where isActive = true
AH
ak
AH
AH
ak
ak
ak