[ 
https://issues.apache.org/jira/browse/SOLR-13739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16929349#comment-16929349
 ] 

ASF subversion and git services commented on SOLR-13739:
--------------------------------------------------------

Commit f56aacd0a1f4c75936ab6cec779066546a9439f9 in lucene-solr's branch 
refs/heads/branch_8x from Thomas Wöckinger
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=f56aacd ]

SOLR-13739: Optimized large managed schema modifications
Internal O(n^2) problem.
Fixes #855

(cherry picked from commit e788024b84b1402295d4fe6e0c8b818ae3772a52)


> Managed resource observers have to be added only once
> -----------------------------------------------------
>
>                 Key: SOLR-13739
>                 URL: https://issues.apache.org/jira/browse/SOLR-13739
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Server
>    Affects Versions: 8.0, 8.1, master (9.0), 8.2, 8.1.1
>            Reporter: Thomas Wöckinger
>            Priority: Major
>              Labels: easyfix, performance, pull-request-available, 
> ready-to-commit
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> On huge schema modifications, mostly happen due to creation of a new 
> collection, the same observer instance of an ResourceLoaderAware component is 
> added again and again.
> This leads to a runtime behaviour of n²/2 where n is is the number of schema 
> operation multiplied by ResourceLoaderAware components instead of the number 
> of containing ResourceLoaderAware components.
> E.g. If you have 1000 schema operations and 2 ResourceLoaderAware components 
> this leads to 500000 operations instead of 2000.
> Even worse the corresponding resource is registered again and again, which 
> can take some time e.g. ManagedSynonymGraphFilterFactory needs about 5s on 
> each call (depending on the size of synonyms).



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to