Azure / azure-cosmosdb-bulkexecutor-dotnet-getting-started

Bulk Executor Utility for Azure Cosmos DB .NET SQL API
MIT License
66 stars 41 forks source link

Thanks. Any sample for bulkExecuter.BulkDeleteAsync #37

Closed zaalion closed 5 years ago

zaalion commented 5 years ago

Hi,

Do you have any sample for bulkExecuter.BulkDeleteAsync?

Thanks, Reza

ogliznutsa commented 5 years ago

Duplicate of https://github.com/Azure/azure-cosmosdb-bulkexecutor-dotnet-getting-started/issues/30

cgelon commented 5 years ago

The latest package (1.4.0) has changed the parameters of BulkDeleteAsync to be a List<Tuple<string, string>> of PartitionKey and ID (PartitionKey is first and ID of the document is second) and an optional integer of batch delete size. Providing it with a list of tuples should now be pretty straightforward.

Note that this definition is now only on BulkExecutor; it has been mysteriously removed from IBulkExecutor.

abinav2307 commented 5 years ago

We recently noticed a bug in the query overload for BulkDelete, because of which it was removed in the latest version(s).

Currently, out BulkDelete only supports <Partition key, id> tuples as input.

However, we are working on a fix for the query overload as well and will add a sample as soon as the fix is released.

abinav2307 commented 5 years ago

Updated the sample for .NET with BulkDelete here - https://github.com/Azure/azure-cosmosdb-bulkexecutor-dotnet-getting-started