Select count (0) from TB where time between '2015-1-1' and '2020-1-1 s' data is now about 500 w execution time about 15 seconds
How to optimize? Change the statement or indexed?
CodePudding user response:
MSSQL database
CodePudding user response:
Time to add try clustered index
CodePudding user response: