Hi all,
The program that I am working on requires that each employee's value be checked against a table.
The 2 different approaches that I have in mind are...
1) Pull up values for all the employees ahead of time and store in a HashMap. (about 12000 employees)
2) Query the DB each employee at a time.
I am using the 1st method. Populate the HashMap and lookup value for each employee in the HashMap.
But I was wondering which method would give me better performance in terms of memory and execution? Any idea?
Any other ways to code that in?
All inputs most welcome... Thanks!
The program that I am working on requires that each employee's value be checked against a table.
The 2 different approaches that I have in mind are...
1) Pull up values for all the employees ahead of time and store in a HashMap. (about 12000 employees)
2) Query the DB each employee at a time.
I am using the 1st method. Populate the HashMap and lookup value for each employee in the HashMap.
But I was wondering which method would give me better performance in terms of memory and execution? Any idea?
Any other ways to code that in?
All inputs most welcome... Thanks!