[TASK] Bulk insert functional test data sets - #744
Merged
Merged
Conversation
Functional CSV data sets currently execute one INSERT statement for every row. Large fixtures therefore spend most of their setup time on database round trips. Resolve column types once per table, keep the required JSON conversion, and pass all rows to Connection::bulkInsert(). The connection automatically splits statements at the platform parameter limit, while empty data sets and sequence resets retain their existing behavior. For the 743-row RootlineUtility fixture, this reduces runtime by 28% on PostgreSQL, 48% on SQLite, and 80% on MariaDB.
sbuerk
force-pushed
the
bulk-functional-dataset-imports
branch
from
September 4, 2026 10:54
21fdf22 to
200528c
Compare
sbuerk
approved these changes
Sep 4, 2026
This was referenced Sep 16, 2026
reviewtypo3org
pushed a commit
to TYPO3/typo3
that referenced
this pull request
Sep 16, 2026
This update includes performance improvements for MySQL, MariaDB, PostgreSQL and SQLite. TYPO3/testing-framework#754 TYPO3/testing-framework#745 TYPO3/testing-framework#744 TYPO3/testing-framework#743 TYPO3/testing-framework#742 TYPO3/testing-framework#741 For main the testing-framework is updated from its `main` branch. The 14.3 backport raises it to `^9.7.0`, which contains the same performance improvements. There the constraint is raised for the composer based e2e instance and the `typo3tests/dataset-import` test package as well, which required `dev-main` so far. Used command(s): main: > composer update typo3/testing-framework 14.3: > composer require --dev "typo3/testing-framework:^9.7.0" Resolves: #110717 Releases: main, 14.3 Change-Id: I2888587cd53acfc3e505ae4a1c643c218380d9c7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/95346 Tested-by: core-ci <typo3@b13.com> Tested-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com> Tested-by: Oliver Klee <typo3-coding@oliverklee.de> Tested-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com> Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by: Stefan Bürk <stefan@buerk.tech>
reviewtypo3org
pushed a commit
to TYPO3/typo3
that referenced
this pull request
Sep 16, 2026
This update includes performance improvements for MySQL, MariaDB, PostgreSQL and SQLite. TYPO3/testing-framework#754 TYPO3/testing-framework#745 TYPO3/testing-framework#744 TYPO3/testing-framework#743 TYPO3/testing-framework#742 TYPO3/testing-framework#741 For main the testing-framework is updated from its `main` branch. The 14.3 backport raises it to `^9.7.0`, which contains the same performance improvements. There the constraint is raised for the composer based e2e instance and the `typo3tests/dataset-import` test package as well, which required `dev-main` so far. Used command(s): main: > composer update typo3/testing-framework 14.3: > composer require --dev "typo3/testing-framework:^9.7.0" Resolves: #110717 Releases: main, 14.3 Change-Id: I2888587cd53acfc3e505ae4a1c643c218380d9c7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/95883 Reviewed-by: Stefan Bürk <stefan@buerk.tech> Tested-by: core-ci <typo3@b13.com> Tested-by: Stefan Bürk <stefan@buerk.tech>
TYPO3IncTeam
pushed a commit
to TYPO3-CMS/core
that referenced
this pull request
Sep 16, 2026
This update includes performance improvements for MySQL, MariaDB, PostgreSQL and SQLite. TYPO3/testing-framework#754 TYPO3/testing-framework#745 TYPO3/testing-framework#744 TYPO3/testing-framework#743 TYPO3/testing-framework#742 TYPO3/testing-framework#741 For main the testing-framework is updated from its `main` branch. The 14.3 backport raises it to `^9.7.0`, which contains the same performance improvements. There the constraint is raised for the composer based e2e instance and the `typo3tests/dataset-import` test package as well, which required `dev-main` so far. Used command(s): main: > composer update typo3/testing-framework 14.3: > composer require --dev "typo3/testing-framework:^9.7.0" Resolves: #110717 Releases: main, 14.3 Change-Id: I2888587cd53acfc3e505ae4a1c643c218380d9c7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/95346 Tested-by: core-ci <typo3@b13.com> Tested-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com> Tested-by: Oliver Klee <typo3-coding@oliverklee.de> Tested-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com> Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by: Stefan Bürk <stefan@buerk.tech>
TYPO3IncTeam
pushed a commit
to TYPO3-CMS/core
that referenced
this pull request
Sep 16, 2026
This update includes performance improvements for MySQL, MariaDB, PostgreSQL and SQLite. TYPO3/testing-framework#754 TYPO3/testing-framework#745 TYPO3/testing-framework#744 TYPO3/testing-framework#743 TYPO3/testing-framework#742 TYPO3/testing-framework#741 For main the testing-framework is updated from its `main` branch. The 14.3 backport raises it to `^9.7.0`, which contains the same performance improvements. There the constraint is raised for the composer based e2e instance and the `typo3tests/dataset-import` test package as well, which required `dev-main` so far. Used command(s): main: > composer update typo3/testing-framework 14.3: > composer require --dev "typo3/testing-framework:^9.7.0" Resolves: #110717 Releases: main, 14.3 Change-Id: I2888587cd53acfc3e505ae4a1c643c218380d9c7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/95883 Reviewed-by: Stefan Bürk <stefan@buerk.tech> Tested-by: core-ci <typo3@b13.com> Tested-by: Stefan Bürk <stefan@buerk.tech>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Functional CSV data sets currently execute one INSERT statement for every row. Large fixtures therefore spend most of their setup time on database round trips.
Resolve column types once per table, keep the required JSON conversion, and pass all rows to Connection::bulkInsert(). The connection automatically splits statements at the platform parameter limit, while empty data sets and sequence resets retain their existing behavior.
For the 743-row RootlineUtility fixture, this reduces runtime by 28% on PostgreSQL, 48% on SQLite, and 80% on MariaDB.