Home Forums SQL Server 2012 SQL 2012 - General Performance with Referencing or not referencing, index or with index? RE: Performance with Referencing or not referencing, index or with index?

  • Looking at those in isolation, you probably want an index on (MasterID, ID) on the detail table. Check the existing indexes, make sure there isn't an existing one on MasterID that you can add a second column to.

    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