You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "liyang (JIRA)" <ji...@apache.org> on 2016/06/20 03:48:05 UTC

[jira] [Resolved] (KYLIN-1766) CubeTupleConverter.translateResult() is slow due to date conversion

     [ https://issues.apache.org/jira/browse/KYLIN-1766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

liyang resolved KYLIN-1766.
---------------------------
       Resolution: Fixed
         Assignee: liyang
    Fix Version/s: v1.5.3

> CubeTupleConverter.translateResult() is slow due to date conversion
> -------------------------------------------------------------------
>
>                 Key: KYLIN-1766
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1766
>             Project: Kylin
>          Issue Type: Improvement
>            Reporter: liyang
>            Assignee: liyang
>             Fix For: v1.5.3
>
>         Attachments: profile.png
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)