ScyllaDB: ScyllaDB is a drop-in replacement for DynamoDB. No need to change your client code — you can keep all your existing data models and queries when using our DynamoDB-compatible API
cqlsh>describetable "alternator_scylla-dongle-heartbeat-tbl-local"."scylla-dongle-heartbeat-tbl-local" CREATETABLE "alternator_scylla-dongle-heartbeat-tbl-local"."scylla-dongle-heartbeat-tbl-local" ( "dongleID" text, "userID" text, ":attrs" map<text, blob>, ttl decimal, PRIMARY KEY ("dongleID", "userID") ) WITH CLUSTERING ORDERBY ("userID" ASC) AND bloom_filter_fp_chance =0.01 AND caching = {'keys': 'ALL', 'rows_per_partition': 'ALL'} AND comment ='' AND compaction = {'class': 'SizeTieredCompactionStrategy'} AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} AND crc_check_chance =1.0 AND dclocal_read_repair_chance =0.0 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 MATERIALIZED VIEW "alternator_scylla-dongle-heartbeat-tbl-local"."scylla-dongle-heartbeat-tbl-local:idx_dongleheartbeat_ttl" AS SELECT* FROM "alternator_scylla-dongle-heartbeat-tbl-local"."scylla-dongle-heartbeat-tbl-local" WHERE ttl ISNOTNULL PRIMARY KEY (ttl, "dongleID", "userID") WITH CLUSTERING ORDERBY ("dongleID" ASC, "userID" ASC) AND bloom_filter_fp_chance =0.01 AND caching = {'keys': 'ALL', 'rows_per_partition': 'ALL'} AND comment ='' AND compaction = {'class': 'SizeTieredCompactionStrategy'} AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} AND crc_check_chance =1.0 AND dclocal_read_repair_chance =0.0 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'
(1rows) cqlsh>create index idx_dongleheartbeat_ttl on "alternator_scylla-dongle-heartbeat-tbl-local"."scylla-dongle-heartbeat-tbl-local"(ttl); InvalidRequest: Error from server: code=2200 [Invalid query] message="No column definition found for column ttl" cqlsh>
CREATETABLE alternator_demo2.demo2 ( user_id decimalPRIMARY KEY, ":attrs" map<text, blob> ) WITH bloom_filter_fp_chance =0.01 AND caching = {'keys': 'ALL', 'rows_per_partition': 'ALL'} AND comment ='' AND compaction = {'class': 'SizeTieredCompactionStrategy'} AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} AND crc_check_chance =1.0 AND dclocal_read_repair_chance =0.0 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';
scylla_tags = {}
cqlsh>describetable alternator_demo.demo
CREATETABLE alternator_demo.demo ( user_id int, mtime timestamp, str text, PRIMARY KEY (user_id, mtime) ) WITH CLUSTERING ORDERBY (mtime DESC) AND bloom_filter_fp_chance =0.01 AND caching = {'keys': 'ALL', 'rows_per_partition': 'ALL'} AND comment ='' AND compaction = {'class': 'SizeTieredCompactionStrategy'} AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} AND crc_check_chance =1.0 AND dclocal_read_repair_chance =0.0 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';