From a4c5ab08d7be05c0f1cb90d90ff5c9980fa99b99 Mon Sep 17 00:00:00 2001 From: Will Spooner <whs@sanger.ac.uk> Date: Wed, 22 Aug 2007 15:24:30 +0000 Subject: [PATCH] Performance optimisation in fetch_all_by_feature_class method. Contributed by Shiran Pasternak at CSHL --- modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm index 34fd4c3a66..7093cd4fcf 100755 --- a/modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm +++ b/modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm @@ -153,9 +153,7 @@ sub fetch_all_by_feature_class { return [] ); my $sql_t = qq| -SELECT DISTINCT( a.analysis_id ) -FROM analysis a, %s f -WHERE a.analysis_id=f.analysis_id |; +SELECT DISTINCT a.analysis_id FROM %s |; my $sql = sprintf( $sql_t, $feat_table ); my $sth = $self->prepare( $sql ); -- GitLab