-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46943/#review131632
-----------------------------------------------------------




repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java 
(line 390)
<https://reviews.apache.org/r/46943/#comment195647>

    this shouldn't be expensive - its read from reference. Can we return always?



repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java 
(line 401)
<https://reviews.apache.org/r/46943/#comment195649>

    can it use just vertex id in the else case, shouldn't be expensive?



repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java 
(line 410)
<https://reviews.apache.org/r/46943/#comment195650>

    use edge id in else case?



repository/src/main/java/org/apache/atlas/repository/graph/TypedInstanceToGraphMapper.java
 (line 299)
<https://reviews.apache.org/r/46943/#comment195651>

    You can skip clear() as new instance is created everytime. Also, move new 
FullTextMapper() to mapTypedInstanceToGraph() so that the cache is shared 
across create and update entities in the same request


- Shwetha GS


On May 3, 2016, 6:28 p.m., Hemanth Yamijala wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46943/
> -----------------------------------------------------------
> 
> (Updated May 3, 2016, 6:28 p.m.)
> 
> 
> Review request for atlas.
> 
> 
> Bugs: ATLAS-690
>     https://issues.apache.org/jira/browse/ATLAS-690
> 
> 
> Repository: atlas
> 
> 
> Description
> -------
> 
> The patch fixes two regressions caused in Atlas code base recently.
> 
> * A regression involving missing out adding the right indexes
> * A regression that caused a quadratic load of vertices for hive objects.
> 
> The first one was fixed by correcting the indexes back. The second one was 
> fixed by having a per request cache. Some other indexing changes are due to 
> what looks like a Titan issue.
> 
> 
> Diffs
> -----
> 
>   
> repository/src/main/java/org/apache/atlas/repository/graph/FullTextMapper.java
>  36d8034 
>   
> repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedSearchIndexer.java
>  d83c08c 
>   repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java 
> c542ec7 
>   
> repository/src/main/java/org/apache/atlas/repository/graph/TypedInstanceToGraphMapper.java
>  a3dc7e5 
>   
> repository/src/test/java/org/apache/atlas/repository/graph/GraphBackedSearchIndexerMockTest.java
>  PRE-CREATION 
>   
> repository/src/test/java/org/apache/atlas/repository/graph/GraphBackedSearchIndexerTest.java
>  87fdf87 
> 
> Diff: https://reviews.apache.org/r/46943/diff/
> 
> 
> Testing
> -------
> 
> * Ran a local run of 1000 hive tables and verified the time taken is as 
> before the regressions were introduced.
> * All existing UTs / ITs pass. New UT for testing index addition added.
> 
> 
> Thanks,
> 
> Hemanth Yamijala
> 
>

Reply via email to