Pierre Salagnac created SOLR-18306:
--------------------------------------
Summary: 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
Reporter: Pierre Salagnac
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]