Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
ad4db42e
Commit
ad4db42e
authored
Feb 07, 2018
by
Ashutosh Mestry
Committed by
Madhan Neethiraj
Feb 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2434: Performance improvement for import operation.
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
4582d4a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
AtlasGraphUtilsV1.java
...he/atlas/repository/store/graph/v1/AtlasGraphUtilsV1.java
+2
-1
BulkImporterImpl.java
...che/atlas/repository/store/graph/v1/BulkImporterImpl.java
+3
-0
EntityGraphMapper.java
...he/atlas/repository/store/graph/v1/EntityGraphMapper.java
+1
-1
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasGraphUtilsV1.java
View file @
ad4db42e
...
...
@@ -253,7 +253,8 @@ public class AtlasGraphUtilsV1 {
}
else
{
vertex
=
AtlasGraphUtilsV1
.
findByTypeAndPropertyName
(
entityType
.
getTypeName
(),
attribute
.
getVertexPropertyName
(),
attrValue
);
if
(
vertex
==
null
)
{
// if no instance of given typeName is found, try to find an instance of type's sub-type
if
(
vertex
==
null
&&
!
entityType
.
getAllSubTypes
().
isEmpty
())
{
vertex
=
AtlasGraphUtilsV1
.
findBySuperTypeAndPropertyName
(
entityType
.
getTypeName
(),
attribute
.
getVertexPropertyName
(),
attrValue
);
}
}
...
...
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/BulkImporterImpl.java
View file @
ad4db42e
...
...
@@ -19,6 +19,7 @@ package org.apache.atlas.repository.store.graph.v1;
import
com.google.common.annotations.VisibleForTesting
;
import
org.apache.atlas.AtlasErrorCode
;
import
org.apache.atlas.RequestContextV1
;
import
org.apache.atlas.exception.AtlasBaseException
;
import
org.apache.atlas.model.impexp.AtlasImportResult
;
import
org.apache.atlas.model.instance.AtlasEntity
;
...
...
@@ -98,6 +99,8 @@ public class BulkImporterImpl implements BulkImporter {
if
(!
updateResidualList
(
abe
,
residualList
,
entityWithExtInfo
.
getEntity
().
getGuid
()))
{
throw
abe
;
}
}
finally
{
RequestContextV1
.
clear
();
}
}
...
...
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphMapper.java
View file @
ad4db42e
...
...
@@ -1463,7 +1463,7 @@ public class EntityGraphMapper {
AtlasObjectId
objectId
=
new
AtlasObjectId
(
GraphHelper
.
getGuid
(
vertex
),
GraphHelper
.
getTypeName
(
vertex
));
RequestContextV1
req
=
RequestContextV1
.
get
();
if
(!
objectIdsContain
(
req
.
getUpdatedEntityIds
(),
objectId
))
{
if
(!
objectIdsContain
(
req
.
getUpdatedEntityIds
(),
objectId
)
&&
!
objectIdsContain
(
req
.
getCreatedEntityIds
(),
objectId
)
)
{
req
.
recordEntityUpdate
(
objectId
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment