DBI finish() and disconnect()

Is it really that necessary to do $sth->finish() and $dbh->disconnect() after you’ve retrieved your resultset?

The use of finish in these examples is not strictly necessary. You should call it if you are done with the statement handle but not with your program.

from http://www.saturn5.com/~jwb/dbi-examples.html

disconnects are usually recommended so as to keep the session open for as long as it needs to be, no more, no less. Otherwise you have to wait for the db to handle the disconnection, and that’s not fair to the poor db!