You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "zhou-hao (via GitHub)" <gi...@apache.org> on 2024/10/11 04:11:39 UTC
[I] Java 原生接口使用咨询 [iotdb]
zhou-hao opened a new issue, #13718:
URL: https://github.com/apache/iotdb/issues/13718
1. Tablet 虽然支持多行,但是实际情况单个设备可能上报频率并不高,Tablet往往只会有一行,这种场景下执行insertTablet 写入性能并不高。
2. insertTablets 的参数是`Map<deviceId,Tablet>` ,如果想要做缓冲批量写入时,就得去拆分同一个批次的相同设备的Tablet。
疑问: 有没有更合适的批量写入不同设备的方式?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java 原生接口使用咨询 [iotdb]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #13718:
URL: https://github.com/apache/iotdb/issues/13718#issuecomment-2406519904
Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java 原生接口使用咨询 [iotdb]
Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou commented on issue #13718:
URL: https://github.com/apache/iotdb/issues/13718#issuecomment-2407114304
`tablet.addTimestamp(0, 1);` 后面可以加上 `tablet.rowSize++;` 可以解决数据没写进去的问题。
如果每行数据的 deviceID 都不同,可以试试 insertRecords 接口,对这样的场景更友好。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java 原生接口使用咨询 [iotdb]
Posted by "zhou-hao (via GitHub)" <gi...@apache.org>.
zhou-hao closed issue #13718: Java 原生接口使用咨询
URL: https://github.com/apache/iotdb/issues/13718
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java 原生接口使用咨询 [iotdb]
Posted by "zhou-hao (via GitHub)" <gi...@apache.org>.
zhou-hao commented on issue #13718:
URL: https://github.com/apache/iotdb/issues/13718#issuecomment-2407005341
https://github.com/zhou-hao/iotdb-test/blob/master/src/main/java/org/example/iotdb/IoTDBTest.java
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java 原生接口使用咨询 [iotdb]
Posted by "zhou-hao (via GitHub)" <gi...@apache.org>.
zhou-hao commented on issue #13718:
URL: https://github.com/apache/iotdb/issues/13718#issuecomment-2410101060
好的,感谢!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java 原生接口使用咨询 [iotdb]
Posted by "zhou-hao (via GitHub)" <gi...@apache.org>.
zhou-hao commented on issue #13718:
URL: https://github.com/apache/iotdb/issues/13718#issuecomment-2406960305
使用 Tablet 写入数据后 查询不到。写入也没有返回任何错误。请问有什么写入条件要求吗?
```java
public static void main(String[] args) throws Exception {
int port = startIotDB();
try (Session session = new Session.Builder()
.host("127.0.0.1")
.port(port)
.build()) {
session.open();
Tablet tablet = new Tablet(
"root.db1.test",
Collections.singletonList(new MeasurementSchema("temp", TSDataType.FLOAT)),
1);
tablet.addTimestamp(0, 1);
tablet.addValue("temp", 0, 1.0F);
session.insertTablet(tablet);
SessionDataSet set = session.executeQueryStatement("select * from root.db1.test");
if(!set.hasNext()){
throw new IllegalStateException();
}
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org