lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Rafalovitch (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SOLR-2313) Clear root Entity cache when entity is processed
Date Sun, 02 Oct 2016 01:59:20 GMT

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

Alexandre Rafalovitch reassigned SOLR-2313:
-------------------------------------------

    Assignee: Alexandre Rafalovitch

> Clear root Entity cache when entity is processed
> ------------------------------------------------
>
>                 Key: SOLR-2313
>                 URL: https://issues.apache.org/jira/browse/SOLR-2313
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.4.1
>         Environment: Linux, JDBC, Postgres 8.4.6
>            Reporter: Shane
>            Assignee: Alexandre Rafalovitch
>
> The current process clears the entity caches once all root entity elements have been
imported.  When a config file has dozens of root entities, the result is one "idle in transaction"
process for each entity processed, effectively eating up the databases available connections.
 The simple solution would be to clear a root entity's cache once that entity has been processed.
> The following is a diff that I used in my instance to clear the cache when the entity
completed:
> --- DocBuilder.java	2011-01-12 10:05:58.000000000 -0700
> +++ DocBuilder.java.new	2011-01-12 10:05:31.000000000 -0700
> @@ -435,6 +435,9 @@
>          writer.log(SolrWriter.END_ENTITY, null, null);
>        }
>        entityProcessor.destroy();
> +			if(entity.isDocRoot) {
> +				entity.clearCache();
> +			}
>      }
>    }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message