[infinispan-issues] [JBoss JIRA] (ISPN-6506) Cache the Lucene query instead of re-creating it from the filter's AST
Adrian Nistor (JIRA)
issues at jboss.org
Fri Apr 15 06:51:00 EDT 2016
[ https://issues.jboss.org/browse/ISPN-6506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian Nistor updated ISPN-6506:
--------------------------------
Description:
The AST is already cached so the parsing effort is skipped for both param and param-less queries when are executed repeatedly.
A further minor perf improvement can be achieved by caching also the output of the AST to Lucene transformation phase. This can only be done for queries without parameters (because the params would become bound to the Lucene query objects - which are immutable, btw). The Lucene transformation is a low complexity/effort process but even so it is better to skip it entirely when possible.
was:
The AST is already cached so most of the parsing effort is skipped for both param and param-less queries.
A further minor perf improvement can be achieved by caching also the output of the AST to Lucene transformation phase. This can only be done for queries without parameters.
> Cache the Lucene query instead of re-creating it from the filter's AST
> ----------------------------------------------------------------------
>
> Key: ISPN-6506
> URL: https://issues.jboss.org/browse/ISPN-6506
> Project: Infinispan
> Issue Type: Enhancement
> Components: Embedded Querying
> Affects Versions: 9.0.0.Alpha1
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 9.0.0.Alpha2, 9.0.0.Final
>
>
> The AST is already cached so the parsing effort is skipped for both param and param-less queries when are executed repeatedly.
> A further minor perf improvement can be achieved by caching also the output of the AST to Lucene transformation phase. This can only be done for queries without parameters (because the params would become bound to the Lucene query objects - which are immutable, btw). The Lucene transformation is a low complexity/effort process but even so it is better to skip it entirely when possible.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list