Quantcast
Channel: How can I improve a slow comparison query that have over partition and group by - Database Administrators Stack Exchange
Browsing latest articles
Browse All 3 View Live

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 Article



Answer 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 Article

How 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
Browsing latest articles
Browse All 3 View Live




Latest Images