Skip to content

Commit

Permalink
update 2.04_hint.md (actiontech#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylinzhu authored and yanhuqing666 committed Dec 3, 2020
1 parent f697359 commit fa26bdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 2.Function/2.04_hint.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ Hint语法有三种形式:
+ 使用hint做session级别的系统变量和环境变量可能不会生效,请慎用
+ 使用注解并不额外增加的执行时间;从解析复杂度以及性能考虑,注解SQL应尽量用最简单的SQL 语句,如select id from tab_a where id=’10000’;
+ 能不用注解也能够解决的场景,尽量不用注解。
+ 在读写分离场景下,语句为/* xxx */的注释(纯注释,不包含sql),uproxy会将该语句发往slave,dble会将该语句发往master。




0 comments on commit fa26bdb

Please sign in to comment.