Spring returns me the following error while executing a delete Request:
com.datastax.driver.core.exceptions.InvalidQueryException: 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
My Table looks like this:
CREATE TABLE askonym.trusted_keys (
trustkey uuid PRIMARY KEY,
entityid uuid
)
My spring entity:
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table("trusted_keys")
public class TrustKey {
@PrimaryKeyColumn(value = "trustkey", type = PrimaryKeyType.PARTITIONED, ordinal = 1)
private UUID trustKey;
private UUID entityId;
}
My Delete Request:
getCassandraOperations().delete(key);
This getCassandraOperations() is a org.springframework.data.cassandra.core.CassandraOperations object.
Thanks for each contribution!
SELECT COUNT(*)unbound to get all rows in a table to implement paging. Also, their INSERT methods that take multiple rows intrinsically use BATCH, which is bad if you are inserting a lot of rows at once. - Aaron