I have a scenario where I have to two schemas: employer and employees.
employer has 2500 records
employees has 1.5 million records.
linked using an attribute employercode present in both schemas.
I need to find and store all employees belonging to each employer in the employer schema
I have to optimize the current code. The current code I have is a java code, which implements this the simplest way (bubble sort - way too slow), i.e.
1. queries employers
2. Then looping through each employer
3. Picks up employer code for current employer
3. queries employees schema to find which employee’s match the current employer code
4. Stores the resultset under employers
5. continues to next employee
Thus everytime querying 1.5. mil records.
This works but is obviously very very slow, and exceeds acceptable limit by a mile.
Any ideas will be appreciated.
#API-Management#Tamino#webMethods