Hi All,
I am using basic java1.4 and db2 version 9
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?