The query can be slow due to multiple reasons

1. Copy-On-Write support is not enabled

2. Some of the JCR query constraints may not be getting mapped to
Lucene index i.e. index definition does not have full coverage of
query constraints causing quite a few paths to get filtered out. So
actual number of rows accessed may be large but only few of them
qualify all criteria at query engine level. This can be confirmed by
query explanation output

3. Or lots of filtering happening due to access control. Does the
performance remains same with admin user?

Chetan Mehrotra


On Mon, Aug 28, 2017 at 10:02 AM, Jason Bailey <[email protected]> wrote:
> Hi all,
>
> I'm tracking down a problem I'm currently experiencing when my queries use 
> the lucene index on oak 1.2.18.  Here are the figures that I get from the acs 
> commons tool that breaks down queries.
>
> "executeTime": 0
> "getNodesTime": 3279
> "count": 2949
> "countTime": 349807
> "totalTime": 353086
>
> In essence, it's taking me about 6 minutes to iterate through less than 3000 
> results. Does anyone have any ideas on root cause?
>
> -Jason

Reply via email to