I have more of a design question not syntax.
I have a large function that will call several other small functions and most of them will hit my DB. Would it hurt my performance if i created aconnection object in my large function and the passed it to each small function instead of opening a new one inside of each small function.
I know that opening just one is better but I don't know how much of a hit I would get if I started passing around the connection to functions.
thanks
Maboo
I have a large function that will call several other small functions and most of them will hit my DB. Would it hurt my performance if i created aconnection object in my large function and the passed it to each small function instead of opening a new one inside of each small function.
I know that opening just one is better but I don't know how much of a hit I would get if I started passing around the connection to functions.
thanks
Maboo