Quantcast
Channel: Customized Commerce 13 and earlier versions
Viewing all articles
Browse latest Browse all 9642

Getting 200-500 Products and its Variants fast

$
0
0

Hello,

Currently, the project that I am working on is on .NET 4.8 and Commerce 13.35. I would like to get many products (if possible, without batching/paging).

I am using the following code:

...
 var productLinks = _referenceConverter.GetContentLinks(codes).Values;
 var products = _contentLoader.GetItems(productLinks, CultureInfo.InvariantCulture).OfType<ProductData>();
...            

I find the performance a bit slow (with getting the variants for each product it can go up to 10s).

Is there a better/faster way to get a large number of products loaded in one go?


Viewing all articles
Browse latest Browse all 9642

Trending Articles