You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Wojciech Wojcik (JIRA)" <ji...@apache.org> on 2017/02/06 11:42:41 UTC

[jira] [Created] (ATLAS-1527) Batch entity retrievals in DefaultMetadataService.loadEntities

Wojciech Wojcik created ATLAS-1527:
--------------------------------------

             Summary: 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


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)