连接ignite数据库
./sqlline.sh --verbose=true -u jdbc:ignite:thin://10.42.246.146/
创建表:
CREATE TABLE PUBLIC.Person (id INTEGER,NAME VARCHAR,PRIMARY KEY (id));
生成测试sql脚本
for ((i=1; i<=100000; i ++)) do echo "insert into PUBLIC.Person (id, NAME) values($i, '$i')"; done > /tmp/insert.sql
测试:
time ./sqlline.sh --silent=true --verbose=false --run=/tmp/insert.sql -u jdbc:ignite:thin://10.42.246.146/