Win a copy of Functional Reactive Programming this week in the Other Languages 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