Skip to content

Magento2 : Get Product Collection With Stock Data

Currently, we require to load product’s stock data from stockregistry which increases database connection if working with foreach loop for product collection.

I want to reduce it anyhow.