↧
Answer by rois for How can I improve a slow comparison query that have over...
The stated purpose of your query is to return new and updated rows from [ExternalTable]. In that case you could use EXCEPT syntax. You might also want to use temp table for [ExternalTable], because the...
View ArticleAnswer by Hannah Vernon for How can I improve a slow comparison query that...
Since [ExternalTable] is linked to a view on another database server, it probably makes sense to "materialize" the rows in [ExternalTable] into a local temp table, then run the query against that.So,...
View ArticleHow can I improve a slow comparison query that have over partition and group by
I have a query (see below) that is working just fine, when there aren't that many rows, around 5k.However, if I run the same query on a table with around 80k rows the query takes between 30 and 60...
View Article