提交 a96e1229 编写于 作者: Z zyyang

change

上级 18812217
...@@ -75,7 +75,7 @@ public class TaosDemoApplication { ...@@ -75,7 +75,7 @@ public class TaosDemoApplication {
} }
} }
end = System.currentTimeMillis(); end = System.currentTimeMillis();
logger.info(">>> create table time cost : " + (end - start) + " ms."); logger.error(">>> create table time cost : " + (end - start) + " ms.");
/**********************************************************************************/ /**********************************************************************************/
// 插入 // 插入
long tableSize = config.numOfTables; long tableSize = config.numOfTables;
...@@ -90,7 +90,7 @@ public class TaosDemoApplication { ...@@ -90,7 +90,7 @@ public class TaosDemoApplication {
// multi threads to insert // multi threads to insert
int affectedRows = subTableService.insertMultiThreads(superTableMeta, threadSize, tableSize, startTime, gap, config); int affectedRows = subTableService.insertMultiThreads(superTableMeta, threadSize, tableSize, startTime, gap, config);
end = System.currentTimeMillis(); end = System.currentTimeMillis();
logger.info("insert " + affectedRows + " rows, time cost: " + (end - start) + " ms"); logger.error("insert " + affectedRows + " rows, time cost: " + (end - start) + " ms");
/**********************************************************************************/ /**********************************************************************************/
// 删除表 // 删除表
if (config.dropTable) { if (config.dropTable) {
......
...@@ -15,7 +15,7 @@ spring.datasource.password=taosdata ...@@ -15,7 +15,7 @@ spring.datasource.password=taosdata
#spring.datasource.hikari.max-lifetime=0 #spring.datasource.hikari.max-lifetime=0
#logging.level.com.taosdata.taosdemo.dao=error #logging.level.com.taosdata.taosdemo.dao=error
jdbc.driver=com.taosdata.jdbc.TSDBDriver jdbc.driver=com.taosdata.jdbc.rs.RestfulDriver
hikari.maximum-pool-size=1 hikari.maximum-pool-size=1
hikari.minimum-idle=1 hikari.minimum-idle=1
hikari.max-lifetime=0 hikari.max-lifetime=0
\ No newline at end of file
### 设置### ### 设置###
log4j.rootLogger=debug,stdout log4j.rootLogger=error,stdout
### 输出信息到控制抬 ### ### 输出信息到控制抬 ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out log4j.appender.stdout.Target=System.out
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册