How to improve performance of Updating data using JPA
问题 I am using EJB and Container managed EM ( for local testing I am creating em here). I have a requirement where I need to update database based on some condition, My issue is Update is taking very long time , how to reduce it ? I tried two approach 1> Update Query 2> Update in entity Please let me know if I am doing any mistake, or any other approach exist. Note : code for update is below public class Test { private static final int OaOnaccount = 0; private static final int ArrayList = 0;