Skip to content

Commit

Permalink
Revert "Improve element query performance"
Browse files Browse the repository at this point in the history
This reverts commit 636f778 because it causes performance issues in some scenarios.
  • Loading branch information
angrybrad committed Oct 7, 2021
1 parent 77cf613 commit 509962a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Changed
- Logs now include the raw request body in place of the `$_POST` array, if the `$_POST` array is empty. ([#9941](https://github.com/craftcms/cms/discussions/9941))
- Reverted [#9806](https://github.com/craftcms/cms/discussions/9806) from Craft 3.7.12 because it causes performance issues in some scenarios.

## 3.7.16 - 2021-10-06

Expand Down
1 change: 0 additions & 1 deletion src/elements/db/ElementQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,6 @@ public function prepare($builder)
->from(['elements' => Table::ELEMENTS])
->innerJoin(['elements_sites' => Table::ELEMENTS_SITES], '[[elements_sites.elementId]] = [[elements.id]]')
->andWhere($this->where)
->andWhere(['elements.type' => $this->elementType])
->offset($this->offset)
->limit($this->limit)
->addParams($this->params);
Expand Down

0 comments on commit 509962a

Please sign in to comment.