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

Allow ignoring relationship in EntityGraphRetriever for FullTextMapperV2

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0, trunk
    • Component/s: None
    • Labels:
      None

      Description

      We encountered a problem when using Hive bridge in production. One database has 5000+ tables. Importing the first table costs only tens of milliseconds, and then it becomes slower with more tables. In the end, it costs 1~2 seconds to import one table.

      After investigation, we realized that it is not necessary for the FullTextMapperV2 to retrieve all the relationship of the database each time a table is imported. The time complexity of importing a whole database actually goes to O(n^2) (n is number of tables).

      We propose to add a parameter to the constructor of EntityGraphRetriever: ignoreRelationship. When set to true, mapVertexToAtlasEntity will skip the mapRelationshipAttributes call. Since FullTextMapperV2 will not use relationship attributes of the entity, this can save plenty of time when importing entities with a large number of relations.

        Attachments

        1. ATLAS-2816.02.patch
          3 kB
          Chengbing Liu
        2. ATLAS-2816.01.patch
          2 kB
          Chengbing Liu

          Activity

            People

            • Assignee:
              apoorvnaik Apoorv Naik
              Reporter:
              chengbing.liu Chengbing Liu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: