[ 
https://issues.apache.org/jira/browse/ATLAS-1527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wojciech Wojcik updated ATLAS-1527:
-----------------------------------
    Attachment: rb56324.patch

> Batch entity retrievals in DefaultMetadataService.loadEntities
> --------------------------------------------------------------
>
>                 Key: ATLAS-1527
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1527
>             Project: Atlas
>          Issue Type: Improvement
>            Reporter: Wojciech Wojcik
>            Assignee: Wojciech Wojcik
>            Priority: Minor
>         Attachments: rb56324.patch
>
>
> DefaultMetadataService.loadEntities() is called at the conclusion of entity 
> creation and update, to load the created/updated entities which are passed to 
> the EntityChangeListener's. The entities are being loaded one at time, 
> because MetadataRepository does not expose a method to retrieve multiple 
> entities by GUID. MetadataRepository can be enhanced to provide a 
> getEntityDefinitions() entrypoint, and the implementation in 
> GraphBackedMetadataRepository can batch the vertex retrievals using 
> GraphHelper.getVerticesForGUIDs(). This will reduce the graph calls to 
> retrieve the vertices.



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

Reply via email to