Last active
January 10, 2021 10:18
-
-
Save Hafiz-SE/53a6b902c732e9d75d99cee19fb089a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean createPresent (long id) { | |
List<Employee> employees = employeeService.getAllEmployees(); //returns 500+ employees. | |
for (Employee employee : employees) { | |
//lots of business logic. | |
//more than 5 database calls | |
//calculations | |
//logging | |
entityManager.clear(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment