File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Improving EJB performance" Watch "Improving EJB performance" New topic

Improving EJB performance

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 850
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

@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-
I agree. Here's the link:
subject: Improving EJB performance
It's not a secret anymore!