Skip to content

Latest commit

 

History

History
9 lines (9 loc) · 431 Bytes

2022-03-21-add-early-return-in-entity-searcher-when-limit-is-zero.md

File metadata and controls

9 lines (9 loc) · 431 Bytes
title issue
Don't perform queries in `EntitySearcher` if criteria.limit = 0
NEXT-20689

Core

  • Changed \Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntitySearcher::search() to not perform a query if $criteria->getLimit() === 0.

Elasticsearch

  • Changed \Shopware\Elasticsearch\Framework\DataAbstractionLayer\ElasticsearchEntitySearcher::search() to not perform a query if $criteria->getLimit() === 0.