Skip to content
Snippets Groups Projects
Commit 5351542b authored by tjc's avatar tjc
Browse files

speed up getFeatureByUniquename()

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@10949 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent e4c592c8
Branches
Tags
No related merge requests found
......@@ -2202,11 +2202,7 @@ public class DatabaseDocument extends Document
public Feature getFeatureByUniquename(final String uniqueName)
{
GmodDAO dao = getDAOOnly();
List features = dao.getFeaturesByUniqueName(uniqueName);
if(features == null || features.size() < 1)
return null;
return (Feature)(dao.getFeaturesByUniqueName(uniqueName).get(0));
return (Feature) dao.getFeatureByUniqueName(uniqueName, null);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment