云数据库 GaussDB-行数的Hint:建议

时间:2023-11-01 16:19:21

建议

  • 推荐使用两个表*的hint。对于两个表的采用*操作符的hint,只要两个表出现在join的两端,都会触发hint。例如:设置hint为rows(t1 t2 * 3),对于(t1 t3 t4)和(t2 t5 t6)join时,由于t1和t2出现在join的两端,所以其join的结果集也会应用该hint规则乘以3。
  • rows hint支持在单表、多表、function table及subquery scan table的结果集上指定hint。
support.huaweicloud.com/usermanual-opengauss/opengauss_opti_0057.html