You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Pierre Salagnac (Jira)" <ji...@apache.org> on 2026/07/13 10:38:00 UTC

[jira] [Resolved] (SOLR-18306) Dynamic field patterns are applied without caching when retrieving field types

     [ https://issues.apache.org/jira/browse/SOLR-18306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre Salagnac resolved SOLR-18306.
------------------------------------
    Fix Version/s: 10.1
         Assignee: Pierre Salagnac
       Resolution: Fixed

> 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
>            Assignee: Pierre Salagnac
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 10.1
>
>         Attachments: profiler.png
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org