Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
372 views
in Technique[技术] by (71.8m points)

influxdb插入一条当天的数据,搜索时为什么要回退10年才能搜到?

插入一条time为今天的数据:

insert device_if_info_5min,asset_id="xxx" serial_number="ABV12543RRT" 1588900200000000000

插入成功,但是在搜索的时候必须回退十年才能搜索到:

select * from "device_if_info_5min" where time > now() - 3700d tz('Asia/Shanghai')

微信图片_20200508152227.png
从time字段可以看出,确实是今天的数据,但是必须now()-3700d,也就是回退10年才能搜到这个数据。这是什么原因?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...