Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominic Guss2018-09-06 15:03:29 -0400
committerDominic Guss2018-09-10 14:49:44 -0400
commit9a1748004f054e7ed4339edcd4077ec4ac7259e8 (patch)
tree566560d851e8fb3adf5223551b5cba1b8d057b29
parentb83191543307ee0b5f255153c57d11aa2bcf01a5 (diff)
downloadorg.eclipse.osee-9a1748004f054e7ed4339edcd4077ec4ac7259e8.tar.gz
org.eclipse.osee-9a1748004f054e7ed4339edcd4077ec4ac7259e8.tar.xz
org.eclipse.osee-9a1748004f054e7ed4339edcd4077ec4ac7259e8.zip
bug[ats_TW10608]: Improve Dispo Set creation speed
Change-Id: Icffa1fbde6321f92b7afa5bc8ebdb28402e0c0cf Signed-off-by: Dominic Guss <Dominic.Guss@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/internal/OrcsStorageImpl.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/internal/OrcsStorageImpl.java b/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/internal/OrcsStorageImpl.java
index f5099213fd..befc8bcb3f 100644
--- a/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/internal/OrcsStorageImpl.java
+++ b/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/internal/OrcsStorageImpl.java
@@ -91,20 +91,14 @@ public class OrcsStorageImpl implements Storage {
orcsApi.getOrcsTypes().invalidateAll();
}
- private ResultSet<ArtifactReadable> getDispoTypesArtifact() throws OseeCoreException {
- return getQuery().fromBranch(COMMON).andUuid(DISPO_ARTIFACT.getUuid()).andTypeEquals(
- DISPO_ARTIFACT.getArtifactType()).getResults();
- }
-
@Override
public boolean typesExist() {
- boolean result = false;
try {
- result = !getDispoTypesArtifact().isEmpty();
+ return getQuery().fromBranch(COMMON).andId(DISPO_ARTIFACT).getResults().getAtMostOneOrNull() != null;
} catch (OseeCoreException ex) {
logger.warn(ex, "Error checking for Dispo Types");
+ return false;
}
- return result;
}
@Override

Back to the top