8.23 hint

作者: 鲸鱼酱375 | 来源:发表于2019-08-24 01:08 被阅读0次

last operation

1. what is hint

Hints are ways of the user “hinting” to the SQL Server Engine what method of execution it should take
Hints override the normal execution plan created by SQL Server when it performs a query or syntax

2. type of hints

2.1 table hints

  • Used to control the locks used on a table and even what indexes to use in queries
  • 在dirty data,because isolation level, you cannot read, but select with(nolock), you can read

2.1.1 note

2.2 join hints

2.2.1 merge join

  • when two table have same size, and both of them are index, it goes for merge join
  • Used for tables that are similar in size, it compares values that are matching across from each other. If duplicates, then Cartesian Product

2.2.2 hash join

  • one of two table doesn't index
  • sql servel build buld phase on one table,then probe phase
  • Creates two hash tables in memory, fills them with data based on keys, and compares smaller table to large one

2.2.2.1 Remote Hash Join

– Performs the same hash join, but the build and probe phases are done on the linked server instead if it’s smaller

2.2.3 loop join

  • when a huge table join a small table ,it goes to loop join
  • Creates a nested loop in which each value is compared from the smaller table to the larger row by row

2.3query hints

Applies specified hint to entire query as it’s executed
Applies to Select, Insert, Update, and Delete

2.3.1 type:

  • maxdop: maximum degree of parallelism for the query
  • maxrecursion hint can use

相关文章

  • 8.23 hint

    last operation 1. what is hint Hints are ways of the user...

  • 设置EditText的hint字体大小

    背景: EditText能设置hint的颜色,但是却不能设置hint的字体大小,导致hint的字体和text的字体...

  • hint

    hint 1 Make your own decisions慢慢看的人越来越多,得注意尽量避免个人的主观因素,以免...

  • give no hint of

    give no hint of hint n 暗示 提示 1.If she saw me out of corne...

  • 2018-08-23

    # 8.23

  • BJDCTF2020-WEB-The mystery of ip

    登录发现有flag 和 hint两个页面 查看hint页面源码 X-Forwarded-For 有SSTI注入,...

  • 强制索引

    mysql常用的hint 对于经常使用oracle的朋友可能知道,oracle的hint功能种类很多,对于优化sq...

  • kotlin : the position of functio

    If the function A is written in a file, the IDE will hint...

  • iOS NSRange start

    2016.9.2 NSString*hint = [NSStringstringWithFormat:@"恭喜您,...

  • Android控件之——EditText

    显示提示文字 属性:hint用法:hint="输入你想要输入的内容"实例 修改提示文字的大小 代码中动态修改实现

网友评论

      本文标题:8.23 hint

      本文链接:https://www.haomeiwen.com/subject/vraxectx.html