chstath / gss

Automatically exported from code.google.com/p/gss
Other
0 stars 0 forks source link

[gss2] Eliminate redundant object lookups #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Most service object methods are being passed object IDs as parameters and 
perform lookups to get the referenced objects. This is no longer necessary in 
many cases, since many call sites already have a reference to the object in the 
time of the call. We should examine the call hierarchy for each of these 
methods and modify the type signature for the methods that are always called 
with the required objects already in scope.

A perhaps better solution would be to change all the method signatures to use 
object parameters instead of IDs and inject the DAOs to the servlets in order 
to let them perform the initial lookup themselves.

Original issue reported on code.google.com by past...@gmail.com on 12 Oct 2010 at 12:33

GoogleCodeExporter commented 9 years ago

Original comment by past...@gmail.com on 13 Oct 2010 at 1:42