Page MenuHomeSoftware Heritage
Paste P1165

cassandra extid allow filtering
ActivePublic

Authored by vlorentz on Sep 15 2021, 2:23 PM.
cqlsh:swh> DESCRIBE extid
CREATE TABLE swh.extid (
extid_type ascii,
extid blob,
extid_version smallint,
target_type ascii,
target blob,
PRIMARY KEY ((extid_type, extid), extid_version, target_type, target)
) WITH CLUSTERING ORDER BY (extid_version ASC, target_type ASC, target ASC)
AND additional_write_policy = '99p'
AND bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND cdc = false
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '16', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND default_time_to_live = 0
AND extensions = {}
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 = 'BLOCKING'
AND speculative_retry = '99p';
cqlsh:swh> SELECT * FROM extid WHERE token(extid_type, extid) = ? AND extid_version = ?;
InvalidRequest: Error from server: code=2200 [Invalid query] message="Cannot execute this query as it might involve data filtering and thus may have unpredictable performance. If you want to execute this query despite the performance unpredictability, use ALLOW FILTERING"