Skip to content

[5.x]: Slow queries for product relation fields #4281

@jmauzyk

Description

@jmauzyk

What happened?

Description

After migrating to Craft 5, I'm experiencing slow queries for product relations fields, around 4600 ms per field according to the debug toolbar. If there is a product relations field within a matrix field, some CP pages just won't even load.

Craft CMS version

5.9.20

Craft Commerce version

5.6.2

PHP version

8.2.30

Operating system and version

Linux 6.12.76-linuxkit

Database type and version

PostgreSQL 14.20

Image driver and version

Imagick 3.8.1 (ImageMagick 7.1.1-43)

Installed plugins and versions

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions