This is a good tip with low-volume sites. However, with high-volume sites the overhead of opening and closing connections becomes significant.
Thus, many frameworks (I won't say MVC frameworks, this is a different issue) use connection pooling: they keep a fixed number of connections more-or-less permanently open and reuse them.
YMMV.
↧