云数据库 GAUSSDB NOSQL-如何使用GaussDB(for Influx)的hint功能

时间:2023-11-10 12:13:27

如何使用GaussDB(for Influx)的hint功能

GaussDB(for Influx)支持hint功能,来提高查询性能。该功能只能用于单时间线(单时间线可以简单理解为查询语句中需要指定所有的tag的值)查询的场景,使用hint功能时只需要在查询语句前面加上“/*+ full_series */” 即可。

例如:

常规查询语句:

 select value from cpu where server_id=1;

使用hint查询对应的语法则为:

 select /*+ full_series */ value from cpu where server_id=1;
support.huaweicloud.com/productdesc-nosql/influx_faq_0104.html