5 tips to write efficient queries with JPA and Hibernate 1.1 1. Choose a projection that fits your use case. 1.2 2. Avoid eager fetching in your mapping definition. 1.3 3. Initialize all required associations in your query. 1.4 4. Use pagination when you select a list of entities. 1.5 5. Log SQL statements.