You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@griffin.apache.org by "Kevin Yao (JIRA)" <ji...@apache.org> on 2017/12/14 06:44:00 UTC

[jira] [Updated] (GRIFFIN-78) Manage job basic info by griffin rather than quartz

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

Kevin Yao updated GRIFFIN-78:
-----------------------------
    Description: 
In griffin now,jobs info is completely managed by quartz.Sometimes it is inconvenient for us to get basic job info and delete job,because the structure for quartz table is relatively complex.Therefore,We decide to create a simple table in griffin to manage job basic info for different job type.
Our solution:
     1.we create a base table called job.
      2.Different job type can inherit the base table.They will be mapped in a single table.
     3.This approach makes polymorphic queries very efficient and provides the best performance.But it also has some drawbacks. The attributes of all entities are mapped to the same database table. Each record uses only a subset of the available columns and sets the rest of them to null. You can, therefore, not use not null constraints on any column that isn’t mapped to all entities. 

  was:
In griffin now,jobs info is completely managed by quartz.Sometimes it is inconvenient for us to get basic job info and delete job,because the structure for quartz table is relatively complex.Therefore,We decide to create a simple table in griffin to manage job basic info.
Our solution:
     1.we create a base table called job.It only has four columns,which are* id(primary ky)*,*job_name(varchar)*,*group_name(varchar)* and *metric_name(varchar)*.
      2.Different job type can inherit the base table.For instance,basic job info can be stored in griffin_job table ,which inherits base table and has other columns like measure_id(bigint), quartz_job_name(varchar),quartz_group_name(varchar),deleted(bit).
     3.This solution reduces redundant info and has a good expansibility.It looks more  reasonable,but it also increases complexity of table.


> Manage job basic info by griffin rather than quartz
> ---------------------------------------------------
>
>                 Key: GRIFFIN-78
>                 URL: https://issues.apache.org/jira/browse/GRIFFIN-78
>             Project: Griffin (Incubating)
>          Issue Type: Improvement
>          Components: accuracy-batch
>    Affects Versions: 0.2.0-incubating
>            Reporter: Kevin Yao
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> In griffin now,jobs info is completely managed by quartz.Sometimes it is inconvenient for us to get basic job info and delete job,because the structure for quartz table is relatively complex.Therefore,We decide to create a simple table in griffin to manage job basic info for different job type.
> Our solution:
>      1.we create a base table called job.
>       2.Different job type can inherit the base table.They will be mapped in a single table.
>      3.This approach makes polymorphic queries very efficient and provides the best performance.But it also has some drawbacks. The attributes of all entities are mapped to the same database table. Each record uses only a subset of the available columns and sets the rest of them to null. You can, therefore, not use not null constraints on any column that isn’t mapped to all entities. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)