Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

涛思数据库测试和influxdb测试的一些问题 #13

Open
deagman opened this issue Jul 5, 2023 · 1 comment
Open

涛思数据库测试和influxdb测试的一些问题 #13

deagman opened this issue Jul 5, 2023 · 1 comment

Comments

@deagman
Copy link

deagman commented Jul 5, 2023

在测试涛思数据库时,import.property文件中说:device_num应该整除write_client,我不是很理解这个。在实际测试中,我将import.property中的device_num和write_client设为10和10,最后数据库会显示device_id是从d_90到d_99,如果是10,20,则会是从d_180到d_199。我不是很理解这个编号顺序,不应该是从0到99和从0到199吗?
然后在influxdb进行导入时,在influxAdapter中:INFLUXDB=InfluxDBFactory.connect(URL);会报错:Exception in thread "main" org.influxdb.InfluxDBException: {"code":"unauthorized","message":"Unauthorized"},感觉是没有导入user和password,因此我自己将其改成INFLUXDB=InfluxDBFactory.connect(URL,ds.getUser(),ds.getPasswd());,但还是会报同样的错。

@deagman
Copy link
Author

deagman commented Jul 13, 2023

第一个问题已解决:因为涛思数据库遵循“一个设备一张表的原则”,所以同一张表内,同一时间即使有不同id的设备写入,只会记录最后一个设备,也意味着一张表内的时间戳是唯一的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant