Faster entity counting
All ORDER BY is discarded when counting entities in search services.
This commit is contained in:
parent
e725f8d554
commit
a1378c98b4
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ abstract class AbstractSearchService
|
|||
$innerStmt->setTable($table);
|
||||
static::decorateParser($innerStmt, $searchQuery);
|
||||
static::decorateCustom($innerStmt);
|
||||
$innerStmt->resetOrderBy();
|
||||
|
||||
$stmt = new SqlSelectStatement();
|
||||
$stmt->setColumn(new SqlAliasOperator(new SqlCountOperator('1'), 'count'));
|
||||
|
|
Loading…
Reference in a new issue