orenpeled wrote:
In this thread you've mentioned that performance is generally the same in both Adapter and SelfServicing
After reading the concepts behind each one of them, I said to myself: hey, if DataAccessAdapter needs to "consult" another object in order to perform database-actions, it must be more expensive that SelfServicing, considering the fact that with SelfServicing each entity implements its own database-actions!
Can you please clear this point for me?
true, but that's just 1 call to a routine which picks it from a hashtable, or if it's not there, it creates the objects, which is very straightforward. Profiling the two for the same action doesn't reveal a big difference, most of the time they're on par.