Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is the difference between tag and attribute in Apache IoTDB?

I see it is applicable to set a tag or attribute to a timeseries, but what is the difference between these two conception?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

‘Tag’ of a timeseies in Apache IoTDB is indexed, which can be a filter in WHERE clause (but connnot be a part of SELECT clause for now). While ‘attribute’ is some kind of annotation, which cannot be filtered during a query.

For a example, in a timeserie database for electricity devices, you can set the ownership of the timeseries as a tag, so that you can query devices of a specified owner.

For more detial, you can visit this page: https://iotdb.apache.org/UserGuide/Master/IoTDB-SQL-Language/DDL-Data-Definition-Language.html#tag-and-attribute-management

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading