Skip to content

Commit b5c2484

Browse files
authored
Disable OrderByIdentifierSqlWalker to prevent filesort on large tables (#1259)
2 parents 708d7f7 + cd0abd6 commit b5c2484

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎config/packages/_sylius.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ sylius_channel:
4848
model: App\Entity\Channel\Channel
4949

5050
sylius_core:
51+
# Disables OrderByIdentifierSqlWalker, which always appends `id ASC` to every ORDER BY,
52+
# causing filesort on large tables when the primary sort direction is DESC.
53+
# See: https://github.com/Sylius/Sylius/pull/18956
54+
order_by_identifier: false
55+
5156
resources:
5257
avatar_image:
5358
classes:

0 commit comments

Comments
 (0)