I have 4 java classes , all having main methods. These 4 java classes are run from Unix. They can either be scheduled to execute at same time or at different times. The 4 java classes read 4 different text files. The data in the 4 text files are different from each other. The 4 java classes insert the values to same table (example: Employee Table) .
The problem is if they are all called at the same time how can we avoid table locking. As the data which these java classes are inserting in the Employee table is very huge more that 50000 records. How can we maintain the performance.
1. I was thinking to use synchronize keyword for the method where I insert the data. But it will degrade the performance. 2. Is there any way ....procedures or batch update can help?
Any suggestion or solution someone might have used?
Please don't post the same question on multiple forums. It wastes people's time if they respond without knowing what other people have already said in another forum. I think the JDbc forum is the best choice for this question, so I'm closing this one. Please follow up here.
"I'm not back." - Bill Harding, Twister
It means our mission is in jeapordy! Quick, read this tiny ad!