When dealing with large amounts of data, such as searching a large database, use JDBC directly rather than using Entity EJB components.