SUM(1) vs COUNT(1) Performance Battle. This video is created based on the response of all the viewers who have watched the following two videos and requested me to build this video.
COUNT(*) and Index
https://blog.sqlauthority.com/2021/06...
COUNT(*) and COUNT(1): Performance Battle
https://blog.sqlauthority.com/2021/06...
Additional Resources:
https://blog.sqlauthority.com/2021/06...
SET STATISTICS IO ON:
https://blog.sqlauthority.com/2020/10...
Subscribe for Free Performance Tuning Scripts: https://go.sqlauthority.com/
0:00 Intro
0:12 Real World Story
0:25 Two Important Resoureces
0:45 Demo: SUM(1) vs COUNT(*) Performance Battle
1:10 Set Statistics IO
1:20 Results: SUM(1) vs COUNT(*) Performance Battle
1:55 Summary
#SQLServer #PerformanceTuning #SQLAuthority