[ 
https://issues.apache.org/jira/browse/KYLIN-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14555681#comment-14555681
 ] 

Shaofeng SHI commented on KYLIN-774:
------------------------------------

Add an "auto_merge_time_ranges" attribute in the cube json file, this is an 
array with the times in millisecond, for example:

  "auto_merge_time_ranges" : [604800000, 2419200000]

604800000 means merging 7 days' data into a segment; 2419200000 means 28 days;

If user build the cube every day, with each covers 1 day's data; after the 7th 
segment be built, a merge job will be automatically triggered; When 28 days 
were met, the first 3 weekly segments + the latest 7 daily segments will be 
merged into one big segment. 


> Automatically merge cube segments
> ---------------------------------
>
>                 Key: KYLIN-774
>                 URL: https://issues.apache.org/jira/browse/KYLIN-774
>             Project: Kylin
>          Issue Type: New Feature
>          Components: General, Job Engine, Metadata
>            Reporter: Shaofeng SHI
>            Assignee: Shaofeng SHI
>             Fix For: v0.8.1
>
>
> As time goes on, the number of cube segments increases; If Kylin can 
> automatically merge the segments based on user configuration (daily to weekly 
> to monthly, etc), that will not only save user's manul effort on merge, but 
> also be helpful for the query performance.



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

Reply via email to