Unsolved

This post is more than 5 years old

5 Posts

3033

March 8th, 2016 07:00

Bulk insert, delete operations ATMOS EMC

Hi all,

I use EsuApiLib .NET wrapper to use ATMOS EMC.Everything is ok for now, but I wonder if there is an option to do bulk insert or bulk delete (at least bulk delete).To delete files which i have ids, I have to make calls to Atmos.I think at least for deleting objects there must be a function like void DeleteObject(Identifier[] ids) in addition to void DeleteObject(Identifier id); that I couldn't find in wrapper.

Thanks.

281 Posts

March 8th, 2016 09:00

Unfortunately, the Atmos protocol does not have a bulk delete operation, so the EsuApi interface does not implement it.

Your best bet to quickly delete would be to do it in a parallel block.  EsuApi is thread-safe, so you don't need to worry about synchronization.

e.g.

Parallel.ForEach(ids, id=> esu.DeleteObject(id));

5 Posts

March 9th, 2016 00:00

Thanks for your reply, one more thing that I want to learn about EMC is transaction, does it support transaction ?

281 Posts

March 9th, 2016 10:00

No, due to the distributed nature of Atmos, there is no support for transactions.

No Events found!

Top