Skip to content

[5.x]: Total weight migration very slow #4277

@jmauzyk

Description

@jmauzyk

What happened?

Description

I'm working on migrating our site to Craft/Commerce 5 and started running all the migrations needed in our local DDEV environment. Everything was going ok until it reached the m230214_094122_add_total_weight_column_to_orders migration. The first few batches only took a couple seconds, but as the migration progressed the batches take longer and longer to the point where it is now taking over a minute for each batch and has been running for a few hours. Is there any way to address this?

Craft CMS version

5.9.19

Craft Commerce version

5.6.1.1

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