Thursday, 15 August 2013

Grails criteria versus findAll and findAllBy benchmark

Grails criteria versus findAll and findAllBy benchmark

I search the web and I cannot find a benchmark comparing grails criteria,
findAll and findAllBy
So what is the fastest ?
parent.childs.findAll{ it.someProperty == someValue }
or
Child.findAllByParentAndSomeProperty(parent, someValue)
or
Child.createCriteria().list{
eq('parent', parent)
eq('someProperty ', someValue)
}

No comments:

Post a Comment