queryMultiPointLastData.sh 687 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. # 查询最新 多点历史数据
  3. ROOT=$(cd `dirname $0`/../../; pwd)
  4. cd $ROOT
  5. source $ROOT/shell/tsdb/common.sh
  6. storagePath="root.test1.wf01.wt01";
  7. pointIndex=1
  8. pointCount=10
  9. for pointCount in 1 2 3 5 10 20 30 50 100 200 300 500 1000 2000 3000 5000 10000 20000
  10. do
  11. #API规定Limit上限1000,多的需要更改iotdb配置
  12. echo "----test query points last data pointIndex:${pointIndex} pointCount:${pointCount}"
  13. java -cp ./lib/iotdb.jar demo.query.last.QueryMultiPointLastData \
  14. --host $host --storagePath ${storagePath} --pointNamePrefix pointName1_ --pointIndex ${pointIndex} --pointCount ${pointCount} \
  15. --showQueryResult 0 2>&1 | tee -a ./log/iotdb/out.log
  16. done