Skip to content

Commit

Permalink
[add] GN time statistics under no constraint chain, specific for loki
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhuahuang813 committed Nov 26, 2024
1 parent 319e714 commit c9e764c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conf/tool.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"databaseConnectorConfig": {
"databaseIp": "49.52.27.35",
"databaseName": "bibench",
"databasePort": "5632",
"databasePwd": "postgresql",
"databasePort": "5633",
"databasePwd": "qwer",
"databaseUser": "postgres"
},
"queriesDirectory": "D:\\eclipse-workspace\\public_bi_benchmark\\benchmark-classified\\oneWhere",
"resultDirectory": "result5",
"queriesDirectory": "/home/qswang/hxh_Mirage_TKDE_test/MirageSqls/queries_bibench_noGroupBy_onlyLoki_singletable/Bimbo",
"resultDirectory": "result",
"defaultSchemaName": "public"
}
4 changes: 4 additions & 0 deletions src/main/java/ecnu/db/generator/DataGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,13 @@ public Integer call() throws Exception {
ColumnManager.getInstance().cacheAttributeColumn(attColumnNames);
// 获得所有约束链
List<ConstraintChain> allChains = schema2chains.get(schemaName);
logger.info("used memory before GN(MB): {}", (runtime.totalMemory() - runtime.freeMemory()) / 1024 / 1024);
if (allChains == null) {
// todo 当前假设主键是连续的
long start1 = System.currentTimeMillis();
generateTableWithoutChains(pkName, tableSize, schemaName);
generateNonKeyTime = (System.currentTimeMillis() - start1);
logger.info("used memory after GN(MB): {}", (runtime.totalMemory() - runtime.freeMemory()) / 1024 / 1024);
continue;
}
// 设置chain的索引
Expand Down

0 comments on commit c9e764c

Please sign in to comment.