Problem/Motivation

metatag_migrate_prepare_row() runs a "table exists" query for 100% of migrated rows, even if it is a row that has absolutely nothing to do with Metatag! 😅🤯

This was introduced in #2563649: Migrations: Metatag-D7 basic entities.

Steps to reproduce

Proposed resolution

Statically cache the result, so it is run only once per request.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3190808-2.patch1.18 KBwim leers

Comments

Wim Leers created an issue. See original summary.

wim leers’s picture

Status: Active » Needs review
StatusFileSize
new1.18 KB
damienmckenna’s picture

Nice, thanks for this.

damienmckenna’s picture

Status: Needs review » Fixed

Committed, with some comment additions. Thank you Wim!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.