Hi On Mon, Feb 14, 2011 at 5:38 PM, Nuwan Bandara <[email protected]> wrote:
> Hi Guys, > > Is there a way for me to obtain a collection of resources sorted by name. I > do not want to take all the resources to memory and then sort it and > paginate, can we do it directly at DB level. Currently I am getting an array > of resources by > > collection.getChildren(start, pageLen); > Ah never mind :) I walked through JDBCResourceDAO:986, and it seems even if we request a subset of children of a collection, all child paths are loaded from the database and does a sort operation. Following the same path I will implement my own sort operation to sort the children by name. Thanks, /Nuwan > > Any help appreciated. > -- > Thanks & Regards, > > Nuwan Bandara > Software Engineer > WSO2 Inc. | http://wso2.com > lean . enterprise . middleware > > http://www.nuwanbando.com > > <http://www.nuwanbando.com/> > -- Thanks & Regards, Nuwan Bandara Software Engineer WSO2 Inc. | http://wso2.com lean . enterprise . middleware http://www.nuwanbando.com <http://www.nuwanbando.com/>
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
