Answer the question
In order to leave comments, you need to log in
Sql query, simple table, big data why long duration?
There is a table of actual weather service data with 2 columns: primary key datetime2 and varbinary
The usual "select from where date between" gives ~ 1 million rows per month and lasts ~ 10 seconds.
Given that the sample can be for a year, for the task at hand it takes a very long time.
How can the sampling time be reduced?
PS: nolock is worth it, rebuilding the indexes did not give any result
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question