optimize the dataSource

This commit is contained in:
huoyo 2022-05-28 20:35:38 +08:00
parent 3e07e3bf19
commit bfe26ed1d4
2 changed files with 10 additions and 14 deletions

View File

@ -19,23 +19,23 @@ create table ko_method_relation (
; ;
create table ko_exception_node ( create table ko_exception_node (
id varchar(64) not null primary key comment '主键' , id varchar(200) not null primary key comment '主键' ,
name varchar(64) null comment '异常名' , name varchar(200) null comment '异常名' ,
class_name varchar(64) null comment '类名' , class_name varchar(200) null comment '类名' ,
message varchar(64) null comment '异常消息' message varchar(200) null comment '异常消息'
) comment '异常表'; ) comment '异常表';
create table ko_exception_relation ( create table ko_exception_relation (
id varchar(64) not null primary key comment '' , id varchar(200) not null primary key comment '' ,
source_id varchar(64) null comment '调用方法id' , source_id varchar(200 null comment '调用方法id' ,
target_id varchar(64) null comment '异常id' , target_id varchar(200) null comment '异常id' ,
location int null comment '异常位置' location int null comment '异常位置'
) comment '异常关系表'; ) comment '异常关系表';
create table ko_param_ana ( create table ko_param_ana (
source_id varchar(64) null comment '调用方法id' , source_id varchar(200) null comment '调用方法id' ,
params varchar(64) null comment '参数组合,-分隔' , params varchar(200) null comment '参数组合,-分隔' ,
avg_run_time numeric(10,2) null comment '平均耗时' , avg_run_time numeric(10,2) null comment '平均耗时' ,
max_run_time numeric(10,2) null comment '最大耗时' , max_run_time numeric(10,2) null comment '最大耗时' ,
min_run_time numeric(10,2) null comment '最小耗时' min_run_time numeric(10,2) null comment '最小耗时'

View File

@ -7,11 +7,7 @@ import cn.langpy.kotime.util.Context;
import cn.langpy.kotime.util.MethodType; import cn.langpy.kotime.util.MethodType;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.lang.reflect.Parameter; import java.lang.reflect.Parameter;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.*; import java.util.*;
@ -22,7 +18,7 @@ import static java.util.stream.Collectors.toList;
/** /**
* zhangchang * zhangchang
*/ */
@Component("redis") //@Component("redis")
public class RedisBase implements GraphService { public class RedisBase implements GraphService {
private volatile static Map<String, MethodNode> methodNodes; private volatile static Map<String, MethodNode> methodNodes;