On Thu, May 10, 2007 at 09:23:03AM -0400, Susan Russo wrote:
> my $aq = $dbh->prepare(sprintf("SELECT * from dbxref dx, db where accession = '%s' and dx.db_id = db.db_id and db.name = 'GB_protein'",$rec));
This is not related to your performance issues, but it usually considered bad
form to use sprintf like this (mainly for security reasons). The usual way of
doing this would be:
my $aq = $dbh->prepare("SELECT * from dbxref dx, db where accession = ? and dx.db_id = db.db_id and db.name = 'GB_protein'");
$aq->execute($rec);
/* Steinar */
--
Homepage: http://www.sesse.net/