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

[FEATURE] Reduce call get available sites for TYPO3 12.4 #4154

Conversation

sfroemkenjw
Copy link
Collaborator

What this pr does?

Use PHP generator with yield to process just the available sites needed
How to test

With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.

This should speed up performance a lot.

@sfroemkenjw
Copy link
Collaborator Author

Related to PR: #4145

@dkd-kaehm
Copy link
Collaborator

@sfroemkenjw
Thanks for resolving that issue.
Please squash to single commit.

@sfroemkenjw
Copy link
Collaborator Author

sfroemkenjw commented Sep 20, 2024

Hi @dkd-kaehm

I don't understand. After your approval you will get 3 options to merge my PR: Merge, Rebase and Squash. In TYPO3 docs team we always work this way. I have no clue how to squash commits on my side.

Stefan

@dkd-kaehm
Copy link
Collaborator

OK I'll do the squash.
I have a question on one change.

@dkd-kaehm
Copy link
Collaborator

Squashed and rebased to release-12.0.x on 2024.12.12 state.

@sfroemkenjw sfroemkenjw reopened this Dec 12, 2024
dkd-kaehm pushed a commit to dkd-kaehm/ext-solr that referenced this pull request Dec 12, 2024
Use PHP generator with yield to process just the available sites needed
How to test

With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.

This should speed up performance a lot.

* Remove cache storing from <has> methods of SiteRepository
* Use hasAvailableSites in ModuleController
* Remove cache-set check from tests for SiteRepository
* Move check for duplicate sites to getAvailableSites. PhpStan

Fixes: TYPO3-Solr#3939
Replaces: TYPO3-Solr#4154
dkd-kaehm pushed a commit to dkd-kaehm/ext-solr that referenced this pull request Dec 12, 2024
Use PHP generator with yield to process just the available sites needed
How to test

With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.

This should speed up performance a lot.

* Remove cache storing from <has> methods of SiteRepository
* Use hasAvailableSites in ModuleController
* Remove cache-set check from tests for SiteRepository
* Repair unit tests
* Move check for duplicate sites to getAvailableSites. PhpStan
* Remove unused imports

Fixes: TYPO3-Solr#3939
Ports: TYPO3-Solr#4154
Replaces: TYPO3-Solr#4145
@dkd-kaehm
Copy link
Collaborator

Replaced by #4260

@dkd-kaehm dkd-kaehm closed this Dec 12, 2024
@dkd-kaehm dkd-kaehm changed the title Reduce call get available sites for TYPO3 12.4 [FEATURE] Reduce call get available sites for TYPO3 12.4 Dec 12, 2024
dkd-kaehm pushed a commit to dkd-kaehm/ext-solr that referenced this pull request Dec 12, 2024
Use PHP generator with yield to process just the available sites needed
How to test

With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.

This should speed up performance a lot.

* Remove cache storing from <has> methods of SiteRepository
* Use hasAvailableSites in ModuleController
* Remove cache-set check from tests for SiteRepository
* Repair unit tests
* Move check for duplicate sites to getAvailableSites. PhpStan
* Remove unused imports

Fixes: TYPO3-Solr#3939
Ports: TYPO3-Solr#4154
Replaces: TYPO3-Solr#4145
dkd-kaehm pushed a commit to dkd-kaehm/ext-solr that referenced this pull request Dec 17, 2024
Use PHP generator with yield to process just the available sites needed
How to test

With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.

This should speed up performance a lot.

* Remove cache storing from <has> methods of SiteRepository
* Use hasAvailableSites in ModuleController
* Remove cache-set check from tests for SiteRepository
* Move check for duplicate sites to getAvailableSites. PhpStan

Fixes: TYPO3-Solr#3939
Replaces: TYPO3-Solr#4154
dkd-kaehm pushed a commit to dkd-kaehm/ext-solr that referenced this pull request Dec 17, 2024
Use PHP generator with yield to process just the available sites needed
How to test

With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.

This should speed up performance a lot.

* Remove cache storing from <has> methods of SiteRepository
* Use hasAvailableSites in ModuleController
* Remove cache-set check from tests for SiteRepository
* Repair unit tests
* Move check for duplicate sites to getAvailableSites. PhpStan
* Remove unused imports

Fixes: TYPO3-Solr#3939
Ports: TYPO3-Solr#4154
Replaces: TYPO3-Solr#4145
dkd-kaehm pushed a commit to dkd-kaehm/ext-solr that referenced this pull request Dec 17, 2024
Use PHP generator with yield to process just the available sites needed
How to test

With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.

This should speed up performance a lot.

* Remove cache storing from <has> methods of SiteRepository
* Use hasAvailableSites in ModuleController
* Remove cache-set check from tests for SiteRepository
* Repair unit tests
* Move check for duplicate sites to getAvailableSites. PhpStan
* Remove unused imports

Fixes: TYPO3-Solr#3939
Ports: TYPO3-Solr#4154
Replaces: TYPO3-Solr#4145
dkd-kaehm pushed a commit that referenced this pull request Dec 17, 2024
Use PHP generator with yield to process just the available sites needed
How to test

With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.

This should speed up performance a lot.

* Remove cache storing from <has> methods of SiteRepository
* Use hasAvailableSites in ModuleController
* Remove cache-set check from tests for SiteRepository
* Move check for duplicate sites to getAvailableSites. PhpStan

Fixes: #3939
Replaces: #4154
dkd-kaehm pushed a commit that referenced this pull request Dec 17, 2024
Use PHP generator with yield to process just the available sites needed
How to test

With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.

This should speed up performance a lot.

* Remove cache storing from <has> methods of SiteRepository
* Use hasAvailableSites in ModuleController
* Remove cache-set check from tests for SiteRepository
* Repair unit tests
* Move check for duplicate sites to getAvailableSites. PhpStan
* Remove unused imports

Fixes: #3939
Ports: #4154
Replaces: #4145
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