lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <>
Subject Why is SolrCore creation synchronized?
Date Wed, 08 Apr 2009 05:13:47 GMT
Why does it have to be synchronized . will it notlead to poor
multicore performance?

   * Creates a new core and register it in the list of cores.
   * If a core with the same name already exists, it will be stopped
and replaced by this one.
   *@param dataDir the index directory
   *@param config a solr config instance
   *@param schema a solr schema instance
   *@since solr 1.3
  public SolrCore(String name, String dataDir, SolrConfig config,
IndexSchema schema, CoreDescriptor cd) {
    synchronized (SolrCore.class) {

--Noble Paul

View raw message