On 11/04/2008, Alin Dreghiciu <[EMAIL PROTECTED]> wrote:
>
> On Fri, Apr 11, 2008 at 12:38 PM, Rickard Öberg <[EMAIL PROTECTED]>
> wrote:
> > Alin Dreghiciu wrote:
> >  > * between: Property >= minValue && Property <= maxValue
> >
> >  Isn't this just syntactic sugar for "ge and le"? Might still be useful
> >  though.
>
> Indeed, they are the same but is less to write and my main reason is
> that it may be that some implementations (maybe sql) are able to
> optimize the query when using between rather then ge/le. Not very sure
> about this.


from experience, you have to be careful not to over-think the API

for example, those extra query operations may benefit particular
implementations (like SQL) but you might find that in reality they
only represent a few percent of supplied/used implementations.

in fact with disruptive technology like Qi4j you might find people
are less worried about performance of legacy systems and more
interested in how easy it is to plug in their new indexing system.

if the query API has a lot of operations, it will take longer to write
new implementations (example: consider the difference between
implementing Iterable and implementing Collection)

so imho, get it out for people to try and feedback - I've
never seen an API that was right the first time round ;)

Alin
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>

-- 
Cheers, Stuart
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to