Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Configure frontend caches with NullBackend #321

Merged
merged 1 commit into from
Dec 19, 2021
Merged

[TASK] Configure frontend caches with NullBackend #321

merged 1 commit into from
Dec 19, 2021

Conversation

sbuerk
Copy link
Collaborator

@sbuerk sbuerk commented Dec 18, 2021

This commit configures the frontend related caches to
use the NullBackend, which avoids creating corresponding
tables and reduces SELECT and INSERT database statements.

However, some core tests specificly tests against these
tables needs to specify the database backend again to
avoid test failing tests.

Configuration preparation has been prepared as core patch:

72706: [TASK] Use database cache backend for specific tests
https://review.typo3.org/c/Packages/TYPO3.CMS/+/72706

Merging this pull-request should be done with raising the
testing-framework hash in that patch and merging the core
patch shortly after the merge into the testing-framework
to avoid failing nightlies with composerInstallMax tests.

This commit configures the frontend related caches to
use the NullBackend, which avoids creating corresponding
tables and reduces SELECT and INSERT database statements.

However, some core tests specificly tests against these
tables needs to specify the database backend again to
avoid test failing tests.
@lolli42 lolli42 merged commit e45ee97 into TYPO3:main Dec 19, 2021
sbuerk added a commit that referenced this pull request May 28, 2023
The patch configures frontend related caches to ese the
NullBackend in functional tests. This avoids creating corresponding
tables and reduces SELECT and INSERT database statements.
This results in a performance increase running frontend functional
tests, with core, this is around 5-10% when using postgres DMBS.
sbuerk added a commit that referenced this pull request May 28, 2023
The patch configures frontend related caches to ese the
NullBackend in functional tests. This avoids creating corresponding
tables and reduces SELECT and INSERT database statements.
This results in a performance increase running frontend functional
tests, with core, this is around 5-10% when using postgres DMBS.
sbuerk added a commit that referenced this pull request Jun 25, 2023
The patch configures frontend related caches to ese the
NullBackend in functional tests. This avoids creating corresponding
tables and reduces SELECT and INSERT database statements.
This results in a performance increase running frontend functional
tests, with core, this is around 5-10% when using postgres DMBS.

`extbase_object` cache has been removed with TYPO3 v10, therefore
no longer set it to a `NullBackend`. The extbase caches has been
mergend. Setting the cache to NullBackend does not have a benefit
for core testing. If a extension would benefit from it, they can
provide it by themself as a configuration override.
sbuerk added a commit that referenced this pull request Jun 25, 2023
The patch configures frontend related caches to ese the
NullBackend in functional tests. This avoids creating corresponding
tables and reduces SELECT and INSERT database statements.
This results in a performance increase running frontend functional
tests, with core, this is around 5-10% when using postgres DMBS.

`extbase_object` cache has been removed with TYPO3 v10, therefore
no longer set it to a `NullBackend`. The extbase caches has been
mergend. Setting the cache to NullBackend does not have a benefit
for core testing. If a extension would benefit from it, they can
provide it by themself as a configuration override.
sbuerk added a commit that referenced this pull request Jun 27, 2023
The patch configures frontend related caches to ese the
NullBackend in functional tests. This avoids creating corresponding
tables and reduces SELECT and INSERT database statements.
This results in a performance increase running frontend functional
tests, with core, this is around 5-10% when using postgres DMBS.

`extbase_object` cache has been removed with TYPO3 v10, therefore
no longer set it to a `NullBackend`. The extbase caches has been
mergend. Setting the cache to NullBackend does not have a benefit
for core testing. If a extension would benefit from it, they can
provide it by themself as a configuration override.
sbuerk added a commit that referenced this pull request Jun 27, 2023
The patch configures frontend related caches to ese the
NullBackend in functional tests. This avoids creating corresponding
tables and reduces SELECT and INSERT database statements.
This results in a performance increase running frontend functional
tests, with core, this is around 5-10% when using postgres DMBS.

`extbase_object` cache has been removed with TYPO3 v10, therefore
no longer set it to a `NullBackend`. The extbase caches has been
mergend. Setting the cache to NullBackend does not have a benefit
for core testing. If a extension would benefit from it, they can
provide it by themself as a configuration override.
sbuerk added a commit that referenced this pull request Aug 2, 2023
This reverts commit c32fe20.

Setting some cache configurations to NullBackend needs adoption
in core tests. Therefore, the backport to set the new caches to
NulLBackend is reverted.

The removed non-existing `extbase_object` NullBackend configuration
stays removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants