I need to insert some data in bulk into an azure storage table.
As required all entities share the same partition key.
The thing though is that some entities (PK+RK combination) may be already present in the destination table.
What i understand is that either the entire transaction succeed of fail during a transaction, so my question is what happens if while inserting these entities as a transaction there are some duplicates?
Will the whole thing fail?
Is there any way to prevent this from failing without checking entity by entity?
Thanks.
Happy new year!
Have you seen the new Upsert behavior? This might be a good case for it. If you just want to overwrite existing entities, you can use the InsertOrReplace entity (or InsertOrMerge operation if you do care). This will ignore the errors on collision and use either Merge or Replace operations.