jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Parvulescu <alex.parvule...@gmail.com>
Subject Re: SQL2 vs. QOM
Date Wed, 10 Aug 2011 20:56:06 GMT
Hi Stephen,

If you use SQL2 then you'll have to accept the penalty of parsing the query
to a QueryObjectModel. But I'd say this is not the biggest problem you'll
run into.
Doesn't this fall into the premature optimization category? ;)

I think the better part of the work will go into optimizing the actual

You can profile the parsing code, for your own piece of mind [0], maybe it
will give you some comfort. Look at #createQueryObjectModel(String query)



On Wed, Aug 10, 2011 at 5:45 PM, Stephen Byrne <stephen@lincware.com> wrote:

> I have an application specific model in my Jackrabbit repository and have
> to dynamically generate JCR queries from an application specific search
> syntax. Am I better off performance-wise having my code build the QOM tree
> than generating SQL2?
> If I use SQL2 (or XPath), Jackrabbit takes that statement and generates a
> QOM tree, right?
> --
> Stephen Byrne
> LincWare, LLC
> stephen@lincware.com

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message