Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-1766

CubeTupleConverter.translateResult() is slow due to date conversion

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.5.3
    • Component/s: None
    • Labels:
      None

      Description

      As attached, profiling shows that current filling tuple is slow especially about dates. The norm form "yyyy-mm-dd" is parsed into a Date, then converted into # since epic day. This is slow because of Java's slow SimpleDateFormat.

      An idea is to refine the norm form of date/time to be the time millis. This will save a lot of str <--> date conversions. However the change impacts dictionary, lookup snapshot, and maybe data ingestion. Also need to think about backward compatibility.

        Attachments

        1. profile.png
          151 kB
          liyang

          Activity

            People

            • Assignee:
              liyang.gmt8@gmail.com liyang
              Reporter:
              liyang.gmt8@gmail.com liyang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: