Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Improving EJB performance

 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic