Update multiple shopping cart items to cart using API

Naresh Ede asked on August 9, 2024 07:54

Hi,

I am using Kentico 13, dotnet core application. I wanted to update multiple products to cart in a single database call.

Currently I am looping through all products and updating one by one which is taking very long.

//for loop start
    shoppingCartItemInfoProvider.Set(cartItem);
//for loop end

Is there a way to convert all the insert statements into single query and insert them once so that the performance will get improved.

Thanks.

   Please, sign in to be able to submit a new answer.