???????????????????????????Ч??
???????????? ???????[ 2013/4/8 10:37:17 ] ????????
????????????????????????????????????????????Using Statistics to Improve Query Performance???????£??????? AUTO_CREATE_STATISTICS ??AUTO_UPDATE_STATISTICS???????????????????????????????????????????????????????????????????????μ??????????2??????????????????????????????????????where????????????????????з???????????????????????
--1
SELECT COUNT(*)
FROM a WITH (NOLOCK) ??
b WITH (NOLOCK)
WHERE a.Daytime = b.AccountDate
AND a.Siteid = b.Siteid
AND a.Prodid = b.Prodid
AND b.Daytime = '2013-2-28'
--2
SELECT COUNT(*)
FROM a WITH (NOLOCK) ??
b WITH (NOLOCK)
WHERE a.Daytime = b.AccountDate
AND a.Siteid = b.Siteid
AND a.Prodid = b.Prodid
AND b.Daytime = '2013-3-31'
??????????a ??b?????????????????????????????b????????????(Daytime??Prodid??Siteid)??a???????????????????????????????????????????????????????????????????????1s?????????30+??
??????????????????????????????????????·???????м??????????????????????????????????????????????????????LOOP JOIN??LOOP JOIN???????????????????ο????????????????????????????????????????????LOOP JOIN??????????????????????????м????????????????????????????????????????????????????????????????????????????????????????????????????a??????????θ???????????????????2013-03-04 ????????????????????????????????????????????????? UPDATE STATISTICS????????????????????????м?????????????????????
?????????????????е????????????????????2??????????????????????Statistics??м???????????????????????????????????????????????????????????ON?????????????????Statistics???????????????齨?????job??????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11