Hi, I have tested the interface by using this interface to write data in batch. e.g.., write 1000 data points of device 1 first, then 1000 data points of device 2, then 1000 points of some device...
Comparing with using Statement.executeBatch(), using this interface is 5 times faster than Statement.executeBatch(). It is a good improvement for the above kind of workload. Best, ----------------------------------- Xiangdong Huang School of Software, Tsinghua University 黄向东 清华大学 软件学院 Jialin Qiao <[email protected]> 于2019年8月23日周五 下午9:35写道: > Hi, > > I'm not robot... Here is the original content: > > To resolve the issue (Add rpc interface to insert data) [1], I add a > insertBatch interface in rpc.thrift and a new class named Session as > client. Currently it only support insertBatch(), but we will add more > interfaces (such as create timeseries, set storage group), which is a more > efficient way compared to JDBC. > > I have submitted a PR [2] to master. Anyone interested is welcome to join > or review. > > [1] > https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-173?filter=allopenissues > [2] https://github.com/apache/incubator-iotdb/pull/351 > > -- > Jialin Qiao > School of Software, Tsinghua University > > 乔嘉林 > 清华大学 软件学院 > > > -----原始邮件----- > > 发件人: "Xiangdong Huang" <[email protected]> > > 发送时间: 2019-08-23 20:00:09 (星期五) > > 收件人: [email protected] > > 抄送: > > 主题: Re: Add rpc interface to insert data > > > > Hi Jialin, > > > > It is quite an optimization for insertion only workloads. I will test its > > performance improvement. > > > > Hope we can implement PreparedStatement in JDBC/server asap so that we > can > > support more.. > > > > By the way, are you a robot because you cannot pass the verification code > > detection... :P > > > > Best, > > ----------------------------------- > > Xiangdong Huang > > School of Software, Tsinghua University > > > > 黄向东 > > 清华大学 软件学院 > > > > > > Jialin Qiao <[email protected]> 于2019年8月23日周五 下午7:44写道: > > > > > Hi, > > > > > > 用户您好,您的访问过于频繁,为确认本次访问为正常用户行为,需要您协助验证。 > > > > > > 验证码: > > > > > > 换一张验证码错误,请重新输入 > > > > > > 提交后没解决问题?欢迎反馈 > > > > > > 提交 > > > > > > > > > To resolve the issue (Add rpc interface to insert data) [1], I add a > > > insertBatch interface in rpc.thrift and a new class named Session as > > > client. Currently it only support insertBatch(), but we will add more > > > interfaces (such as create timeseries, set storage group), which is a > more > > > efficient way compared to JDBC. > > > > > > > > > I have submitted a PR [2] to master. Anyone interested is welcome to > join > > > or review. > > > > > > > > > [1] > > > > https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-173?filter=allopenissues > > > [2] https://github.com/apache/incubator-iotdb/pull/351 > > > > > > > > > Best, > > > -- > > > Jialin Qiao > > > School of Software, Tsinghua University > > > > > > 乔嘉林 > > > 清华大学 软件学院 >
