jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Is my instance of Jackrabbit using indexes?
Date Sat, 19 Apr 2008 17:40:02 GMT
Hi,

On Sat, Apr 19, 2008 at 1:46 PM, Colin Anderson
<colin.w.anderson@gmail.com> wrote:
>  Is there a way to check that it is using the indexes when it does a
>  search through the repository?

A search in Jackrabbit is always performed using the index, but some
types of queries are more complex to execute than others.

Does the following more generic query perform noticeably better:
//element(*,atom:Collection)

Also, it seems like you're using the query to select among the
children of a specific node instead of looking through an entire
subtree. In such cases it is almost always more efficient to use
getNodes() and filter the results programmatically.

BR,

Jukka Zitting

Mime
View raw message