java - weblogic timeout due to long DB query -


my requirement read records excel sheet (containing 3 columns) , check whether record exists in db. if exists, write them along more data (2 more columns of excel) separate db table. worst case 10000 records. problem facing weblogic times out after reading 50 records. current code logic is:

validate method(){      callvalidatemethod 1()----- checks whether first column data exists in db. happens each record. worst case 10000 records      callvalidatemethod 2()----- checks whether second column data exists in db. happens each record. worst case 10000 records      callvalidatemethod 3()----- checks whether third column data exists in db. happens each record. worst case 10000 records      if(validation returns true){          writing valid data arraylist         call writedata method---which writes arraylist db.  }  

the ui page gives network error -server slow or busy. in end code runs fine since on console code prints sop statements. have made changes in weblogic jta settings giving them max timeout values. still. there better logic this.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -