do i have put db connection/initialization outmost fcgi loop take advantage fastcgi perl?
let's contend i've got perl formula increments buttress specific quarrel database any it's hit, i'm awaiting strike graceful frequently, i'd optimize fcgi. right now, i fundamentally wrapped many formula something this:
while (fcgi::accept() >= 0) {
[code now creates db tie creates calls by it]
}
i'm wondering it's improved put database tie (my $dbh = dbi->connect(etc)) outmost fcgi loop book keeps tie alive, i still advantage advantages fcgi speed & resources withdrawal loop?
Comments
Post a Comment