Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Improving EJB performance Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Improving EJB performance" Watch "Improving EJB performance" New topic
Author

Improving EJB performance

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 837
Just i want to confirm, that ordering the Collection of entities(using @OrderBy) is more efficient than order by clause in sql statement or using

@Column
@OrderBy(order by Items)
public Item getItems(){
return Items;
}

is as equally bad as using the order by clause in sql query.


SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Improving EJB performance
 
Similar Threads
Sorting problem with HibernateSqlQuery with Websphere
Recent Transaction Records
sql query regarding order
preparedStatement
compareTo of Comparable not being called