You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2019/03/31 17:10:00 UTC

[jira] [Commented] (ATLAS-3109) Allow ignoring relationshipAttributes for AtlasEntityStore.getByUniqueAttributes

    [ https://issues.apache.org/jira/browse/ATLAS-3109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806203#comment-16806203 ] 

Madhan Neethiraj commented on ATLAS-3109:
-----------------------------------------

[~sjq1992] - addition of ignoreRelationship option looks good. Thanks for the patch.

Couple of suggestions:
- rename the option to ignoreRelationships
- in addition to getByUniqueAttributes(), this option will be useful for following methods as well:
-- getById()
-- getByIds() 



> Allow ignoring relationshipAttributes for AtlasEntityStore.getByUniqueAttributes
> --------------------------------------------------------------------------------
>
>                 Key: ATLAS-3109
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3109
>             Project: Atlas
>          Issue Type: Improvement
>          Components:  atlas-core
>    Affects Versions: trunk
>            Reporter: Jiaqi Shan
>            Priority: Major
>         Attachments: ATLAS-3109-Allow-ignoring-relationshipAttributes-for.patch
>
>
> We encountered a problem when using {{AtlasEntityStore.getByUniqueAttributes}}. One Hive database has 3000+ tables, getting metadata of the database by {{AtlasEntityStore.getByUniqueAttributes}} costs more than 1 seconds.
> After investigation, we realized that {{AtlasEntityStore.getByUniqueAttributes}} wil return all attributes and relationshipAttributes of the entity.  In actuality we need'n to get relationshiAttributes like tables.
> We propose to add a parameter {{ignoreRelationship}} to {{AtlasEntityStore.getByUniqueAttributes}}. When set to true, the functions only return attributes of the entity and ignore relationshipAttributes. We also add the parameter to {{AtlasClientV2}} and {{EntityREST}} accordingly.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)