Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-3109

Allow ignoring relationshipAttributes for AtlasEntityStore.getByUniqueAttributes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0, 2.0.0
    • Component/s: atlas-core
    • Labels:
      None

      Description

      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.

       

        Attachments

        1. ATLAS-3109-Allow-ignoring-relationshipAttributes-for.patch
          8 kB
          Jiaqi Shan
        2. ATLAS-3109-2.patch
          19 kB
          Madhan Neethiraj

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sjq1992 Jiaqi Shan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: