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] Improve performance of record indexer #314

Merged
merged 1 commit into from
Apr 4, 2016
Merged

[TASK] Improve performance of record indexer #314

merged 1 commit into from
Apr 4, 2016

Conversation

dmitryd
Copy link
Contributor

@dmitryd dmitryd commented Apr 4, 2016

Cache for language information is not kept across instances of the indexer. Each new record
requires a new instance of the indexer but language information does not change between creation of
indexer instances. Language information is obtained by instantiating TSFE and parsing TS templates.
This can take 0.5-2 seconds depending on the amount of TypoScript. It makes sense to cache this
information statically. It helps to shorten indexing times dramatically and lower CPU usage on
the server.

Cache for language information is not kept across instances of the indexer. Each new record
requires a new instance of the indexer but language information does not change between creation of
indexer instances. Language information is obtained by instantiating TSFE and parsing TS templates.
This can take 0.5-2 seconds depending on the amount of TypoScript. It makes sense to cache this
information statically. It helps to shorten indexing times dramatically and lower CPU usage on
the server.
@dmitryd
Copy link
Contributor Author

dmitryd commented Apr 4, 2016

Helps with about 20,000 news and three languages ;)

@timohund timohund merged commit 5fa4db9 into TYPO3-Solr:master Apr 4, 2016
@timohund
Copy link
Contributor

timohund commented Apr 4, 2016

Looks good. Thx for your contribution!

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