I'm using Aws Keyspaces with c# and first i do select from table to delete by partition keys and then trying delete many rows from table with where clause:
var daysToDelete = DateTimeOffset.UtcNow.AddDays(-1);
foreach (var result in selectResult)
{
Cql deleteQuery = new Cql("WHERE interfaceid = ? and environment = ? and transactionguid < ?",
result .InterfaceId,
result .Environment,
TimeUuid.Min(daysToDelete)).WithOptions(o => o.SetPageSize(100));
mapper.Delete<Transaction>(deleteQuery);
}
It's about 3k - 6k rows and while i'm trying to delete these rows i get an error:
"Range delete requests are limited in the amount of items that can be deleted in a single range"
How can i solve this iisue?