change
This commit is contained in:
parent
013d6693db
commit
63ff87309e
|
@ -81,7 +81,7 @@ public class TaosDemoCommandLineRunner implements CommandLineRunner {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private int insertTask(JdbcTaosdemoConfig config) {
|
private void insertTask(JdbcTaosdemoConfig config) {
|
||||||
int numOfThreadsForInsert = config.numOfThreadsForInsert;
|
int numOfThreadsForInsert = config.numOfThreadsForInsert;
|
||||||
int sleep = config.sleep;
|
int sleep = config.sleep;
|
||||||
if (config.autoCreateTable) {
|
if (config.autoCreateTable) {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<update id="createUsingSuperTable">
|
<update id="createUsingSuperTable">
|
||||||
CREATE table IF NOT EXISTS ${database}.${name} USING ${supertable} TAGS
|
CREATE table IF NOT EXISTS ${database}.${name} USING ${supertable} TAGS
|
||||||
<foreach collection="tags" item="tag" index="index" open="(" close=")" separator=",">
|
<foreach collection="tags" item="tag" index="index" open="(" close=")" separator=",">
|
||||||
${tag.value}
|
#{tag.value}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
VALUES
|
VALUES
|
||||||
<foreach collection="values" item="value">
|
<foreach collection="values" item="value">
|
||||||
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
|
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
|
||||||
${field.value}
|
#{field.value}
|
||||||
</foreach>
|
</foreach>
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
@ -26,12 +26,12 @@
|
||||||
<insert id="insertOneTableMultiValuesUsingSuperTable">
|
<insert id="insertOneTableMultiValuesUsingSuperTable">
|
||||||
INSERT INTO ${database}.${name} USING ${supertable} TAGS
|
INSERT INTO ${database}.${name} USING ${supertable} TAGS
|
||||||
<foreach collection="tags" item="tag" index="index" open="(" close=")" separator=",">
|
<foreach collection="tags" item="tag" index="index" open="(" close=")" separator=",">
|
||||||
${tag.value}
|
#{tag.value}
|
||||||
</foreach>
|
</foreach>
|
||||||
VALUES
|
VALUES
|
||||||
<foreach collection="values" item="value">
|
<foreach collection="values" item="value">
|
||||||
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
|
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
|
||||||
${field.value}
|
#{field.value}
|
||||||
</foreach>
|
</foreach>
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
VALUES
|
VALUES
|
||||||
<foreach collection="table.values" item="value">
|
<foreach collection="table.values" item="value">
|
||||||
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
|
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
|
||||||
${field.value}
|
#{field.value}
|
||||||
</foreach>
|
</foreach>
|
||||||
</foreach>
|
</foreach>
|
||||||
</foreach>
|
</foreach>
|
||||||
|
@ -60,12 +60,12 @@
|
||||||
<foreach collection="tables" item="table">
|
<foreach collection="tables" item="table">
|
||||||
${table.database}.${table.name} USING ${table.supertable} TAGS
|
${table.database}.${table.name} USING ${table.supertable} TAGS
|
||||||
<foreach collection="table.tags" item="tag" index="index" open="(" close=")" separator=",">
|
<foreach collection="table.tags" item="tag" index="index" open="(" close=")" separator=",">
|
||||||
${tag.value}
|
#{tag.value}
|
||||||
</foreach>
|
</foreach>
|
||||||
VALUES
|
VALUES
|
||||||
<foreach collection="table.values" item="value">
|
<foreach collection="table.values" item="value">
|
||||||
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
|
<foreach collection="value.fields" item="field" open="(" close=")" separator=",">
|
||||||
${field.value}
|
#{field.value}
|
||||||
</foreach>
|
</foreach>
|
||||||
</foreach>
|
</foreach>
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|
Loading…
Reference in New Issue