----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/72512/#review220785 -----------------------------------------------------------
graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusGraph.java Lines 186 (patched) <https://reviews.apache.org/r/72512/#comment309492> - consider moving private methods after all public/protected methods - it seems isPresent() can be eliminated, since !isPresent() is already done. Please review: if (gremlinEdge != null && (!gremlinEdge.property(STATE_PROPERTY_KEY).isPresent() || AtlasEntity.Status.ACTIVE.toString().equals(gremlinEdge.property(STATE_PROPERTY_KEY).value())) { - Madhan Neethiraj On May 14, 2020, 10:41 p.m., Ashutosh Mestry wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/72512/ > ----------------------------------------------------------- > > (Updated May 14, 2020, 10:41 p.m.) > > > Review request for atlas. > > > Bugs: ATLAS-3797 > https://issues.apache.org/jira/browse/ATLAS-3797 > > > Repository: atlas > > > Description > ------- > > **Approach** > Modified: _GraphHelper.getOrCreateEdge_ to use > _AtlasJanusGraph.getEdgeBetweenVertices_. > Modified: _AtlasJanusGraph.getEdgeBetweenVertices_ modified fetch. > > > Diffs > ----- > > > graphdb/janus/src/main/java/org/apache/atlas/repository/graphdb/janus/AtlasJanusGraph.java > 35274c9d1 > repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java > b1368e5e9 > > > Diff: https://reviews.apache.org/r/72512/diff/2/ > > > Testing > ------- > > **Pre-commit** > https://builds.apache.org/view/A/view/Atlas/job/PreCommit-ATLAS-Build-Test/1896/ > > **Volume test** > Case edge creation involves existing entity where large number of existing > edges (200K), this change shows significant improvement. > > > Thanks, > > Ashutosh Mestry > >
