jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seidel. Robert" <Robert.Sei...@aeb.de>
Subject AW: Slow sql query performance (against xpath)
Date Wed, 18 Aug 2010 13:29:53 GMT
Thanks Jukka,

this helped a lot. 

I wouldn't ask, why Query.SQL is deprecated, when Query.JCR_SQL2 can't be used due to performance
issues :p

Kindly regards,

Robert Seidel

-----Urspr√ľngliche Nachricht-----
Von: Jukka Zitting [mailto:jukka.zitting@gmail.com] 
Gesendet: Mittwoch, 18. August 2010 15:06
An: users@jackrabbit.apache.org
Betreff: Re: Slow sql query performance (against xpath)


On Wed, Aug 18, 2010 at 3:02 PM, Seidel. Robert <Robert.Seidel@aeb.de> wrote:
> q = qm.createQuery(queryString, Query.JCR_SQL2);

Use this instead:

q = qm.createQuery(queryString, Query.SQL);

The JCR_SQL2 support in Jackrabbit is tied to our join implementation,
which hasn't yet be optimized for performance (see also JCR-2715).


Jukka Zitting

View raw message