ProductValidityConsole 'product:check-validity'
KFrw
Developer Posts: 10 🧑🏻🚀 - Cadet
public function queryProductsBecomingValid(): SpyProductValidityQuery
{
return $this
->getFactory()
->createProductValidityQuery()
->filterByValidFrom('now', Criteria::LESS_EQUAL)
->filterByValidTo(null, Criteria::ISNULL)
->_or()
->filterByValidTo('now', Criteria::GREATER_EQUAL);
}
So this selects all products in the end by two queries and kills our system with an OOM…
I guess we now move this to pagination or a queue.
Any other ideas about that?
0
Answers
-
Oh, I'm sorry to hear that.
I think you are talking about this method: \Spryker\Zed\ProductValidity\Business\ProductConcrete\ProductConcreteSwitcher::updateProductsValidity
It seems to me that you have to implement batching for this method on the project level to handle the numbers of your project.
I have raised this issue internally.
0 -
In order for you to track the progress, please create a support ticket .
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 92 Spryker News
- 1K Developer Corner
- 855 Spryker Development
- 93 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 36 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 35 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 34 Product & Business Questions
- 70 Spryker Safari Questions
- 51 Random
