You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Ashutosh Mestry (JIRA)" <ji...@apache.org> on 2017/03/17 18:50:41 UTC

[jira] [Commented] (ATLAS-1665) Export API: Improve Generated ZIP File Using AtlasEntityWithExtInfo

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

Ashutosh Mestry commented on ATLAS-1665:
----------------------------------------

Improvement in size is ~65%. Please see code review item for implementation details.

> Export API: Improve Generated ZIP File Using AtlasEntityWithExtInfo
> -------------------------------------------------------------------
>
>                 Key: ATLAS-1665
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1665
>             Project: Atlas
>          Issue Type: Improvement
>          Components:  atlas-core
>    Affects Versions: 0.9-incubating
>            Reporter: Ashutosh Mestry
>            Assignee: Ashutosh Mestry
>             Fix For: trunk
>
>         Attachments: ATLAS-1665.patch
>
>
> h5.Background
> Existing implementation of Export API w.r.t ZIP file generation adds 1 *.json* file per entity. This makes ZIP file creation inefficient. The ZIP files are 75% larger in size than what could be possible with fewer *.json* file entries.
> h5.Solution
> The implementation uses the new v2 API *AtlasEntityWithExtInfo* representation instead of *AtlasEntity*. This format combines an entity with related entities as one. E.g. *hive_table* will contain all the *hive_columns* that it is made up of. (See example section below.)
> This results in significant reduction of generated *JSON* files. This impacts reduction in generated *ZIP* file.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)