[JBoss-user] Query optimization

2003-04-01 Thread kiuma
Hello I've one simple question: I want to optimize a query to return pages of 10 elements x page (and here no problem). Problems are these: 1) Can I use Collection.size() to calculate the total page number , without loosing in performance? 2) If I want to get the third page, do I have to

Re: [JBoss-user] Query optimization

2003-04-01 Thread julien viet
k Hello I've one simple question: k I want to optimize a query to return pages of 10 elements x page (and k here no problem). k Problems are these: k 1) Can I use Collection.size() to calculate the total page number , k without loosing in performance? yes, all keys are already fetched and