Commit 59648d28 by Madhan Neethiraj

ATLAS-3279: avoid unncessary retrieval of entity-extended info while sending notifications

Change-Id: I82e0bba27010709c74cd98a93f8a9c617577535e
parent 9062e2c8
...@@ -271,11 +271,11 @@ public class FullTextMapperV2 { ...@@ -271,11 +271,11 @@ public class FullTextMapperV2 {
} }
} }
private AtlasEntity getAndCacheEntity(String guid) throws AtlasBaseException { public AtlasEntity getAndCacheEntity(String guid) throws AtlasBaseException {
return getAndCacheEntity(guid, true); return getAndCacheEntity(guid, true);
} }
private AtlasEntity getAndCacheEntity(String guid, boolean includeReferences) throws AtlasBaseException { public AtlasEntity getAndCacheEntity(String guid, boolean includeReferences) throws AtlasBaseException {
RequestContext context = RequestContext.get(); RequestContext context = RequestContext.get();
AtlasEntity entity = context.getEntity(guid); AtlasEntity entity = context.getEntity(guid);
...@@ -294,7 +294,7 @@ public class FullTextMapperV2 { ...@@ -294,7 +294,7 @@ public class FullTextMapperV2 {
return entity; return entity;
} }
private AtlasEntityWithExtInfo getAndCacheEntityWithExtInfo(String guid) throws AtlasBaseException { public AtlasEntityWithExtInfo getAndCacheEntityWithExtInfo(String guid) throws AtlasBaseException {
RequestContext context = RequestContext.get(); RequestContext context = RequestContext.get();
AtlasEntityWithExtInfo entityWithExtInfo = context.getEntityWithExtInfo(guid); AtlasEntityWithExtInfo entityWithExtInfo = context.getEntityWithExtInfo(guid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment