This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Improving EJB performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Improving EJB performance" Watch "Improving EJB performance" New topic
Author

Improving EJB performance

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 844
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://aspose.com/file-tools
 
subject: Improving EJB performance
 
Similar Threads
Sorting problem with HibernateSqlQuery with Websphere
sql query regarding order
preparedStatement
compareTo of Comparable not being called
Recent Transaction Records