Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300544

Locale is very slow to import strings

$
0
0

Problem/Motivation

When importing existing configuration during site install, importing translated strings is very slow

Table of xhprof results

Drupal\local\Gettest::fileToDatabase generates a call to Drupal\locale\PoDatabaseWriter::importString for each string which is then individually written to the database - in my case, for 6 languages, this caused an additional 51,000+ database writes on install and the installer takes around 10m to complete.

Proposed resolution

Support adding more than 1 translated string at a time to the database

Remaining tasks

tbd

API changes

tbd

Release notes snippet

tbd


Viewing all articles
Browse latest Browse all 300544

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>