云数据库 GAUSSDB-Stream方式的Hint:示例

时间:2024-01-12 17:59:23

示例

示例中原语句使用如下hint:

explain 
select /*+ no redistribute(store_sales store_returns item store) leading(((store_sales store_returns item store) customer)) */ i_product_name product_name ...

原计划中,(store_sales store_returns item store)和customer做join时,前者做了重分布,此hint表示禁止前者混合表做重分布,但仍然保持join顺序,则生成计划如下所示:

support.huaweicloud.com/usermanual-gaussdb/gaussdb_01_134.html