I have following table in Cassandra:
create table ibc.my_table
(
my_key_1 uuid,
my_key_2 uuid,
my_key_3 uuid,
end_timestamp timestamp,
locked boolean,
maximum_duration_minutes int,
maximum_participant_count int,
owner_id uuid,
start_timestamp timestamp,
status_code text,
primary key ((my_key_1, my_key_2), my_key_3)
)
This query works:
select * from my_table
where my_key_1=3fa85f64-5717-4562-b3fc-2c963f66afa6
AND my_key_2=3fa85f64-5717-4562-b3fc-2c963f66afa6
but this one - not:
select * from my_table
where my_key_1=3fa85f64-5717-4562-b3fc-2c963f66afa6
AND my_key_2=3fa85f64-5717-4562-b3fc-2c963f66afa6
AND owner_id=3fa85f64-5717-4562-b3fc-2c963f66afa6
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
I don't want to use ALLOW FILTERING because of performance. I also can't make owner_id as a part of primary key.
Do I have another option in Cassandra?