[
https://issues.apache.org/jira/browse/SOLR-18306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley updated SOLR-18306:
--------------------------------
Component/s: Schema and Analysis
> Dynamic field patterns are applied without caching when retrieving field types
> ------------------------------------------------------------------------------
>
> Key: SOLR-18306
> URL: https://issues.apache.org/jira/browse/SOLR-18306
> Project: Solr
> Issue Type: Bug
> Components: Schema and Analysis
> Affects Versions: 9.10, 10.0
> Reporter: Pierre Salagnac
> Priority: Minor
> Attachments: profiler.png
>
>
> I noticed unexpected CPU usage in {{{}IndexSchema.getDynamicFieldType(){}}}.
> This methods always tries to match a field name by iterating over all dynamic
> field types of the schema. Depending of the number of declared dynamic
> fields, this can be a waste of CPU cycles.
> Since we already have a cache for the fields, we may easily retrieve the type
> for the cache for the fields that are present.
>
>
> !profiler.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]