Select ... Except Query Optimization Strategies (Suggestions Requested)

  • I am writing an SSIS package to compare an existing table to a new copy of the data in the table that will normally have numerous row changes and additions. The previous month's data is stored in a table with the same structure and can be indexed prior to the compare operation. The current month's data can also be indexed prior to the compare. Would it be helpful to index the compared columns prior to running a Select ... Except ... statement?

    Can you offer any other optimization strategies?

    Thanks for considering this question.

  • Probably. Can't say much more without more info. Do you have the query? If so, please post table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply