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

Atlas: Improve Speed of Primitive Attribute Assignment

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • trunk
    • trunk
    • atlas-core
    • None

    Description

      Background

      While profiling entity creation as part of zip file-based migration import, it was observed that over 50% of time is spent in assigning values to attributes that are of primitive type viz. string, date, etc.

      Methodology Used

      The entity creation flow already has MetricRecorder added to key steps within the entity creation flow. Additional methods (like mapPrimitiveValue) were profiled to get complete breakdown.

      Data set contained large number of entities of various types. Ones used were hdfs_path, hive_db, hive_table, hive_column, hive_process, hive_process_execution, hive_column_lineage.

      Solution

      Within the migration request context, use the setEncodedProperty instead of using the current route of creating AtttributeMutationContext.

       

      Attachments

        Activity

          People

            amestry Ashutosh Mestry
            amestry Ashutosh Mestry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: