Use a transaction PoDatabaseWriter to improve performance

Created on 23 April 2025, about 1 month ago

Problem/Motivation

When creating or updating translations we do a lot of queries. Ideally we'd do less queries and bulk insert and update. But in lieu of re-writing all of this we could be inspired by πŸ› Configuration management performance regression - slow config:import Needs work and use transactions to speed up the process.

Steps to reproduce

Import translations to your site.

Proposed resolution

Open a transaction in \Drupal\locale\PoDatabaseWriter::writeItems()

Remaining tasks

User interface changes

None

Introduced terminology

None

API changes

None

Data model changes

None

Release notes snippet

N/a

πŸ“Œ Task
Status

Active

Version

11.1 πŸ”₯

Component

locale.module

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024