sp_blitz and found two tables that have foreign keys that is untrusted. tried to enable the trust with:
ALTER TABLE MyTableName WITH CHECK CHECK CONSTRAINT MyConstraintName; GO
But got this error message
Msg 547, Level 16, State 0, Line 1 The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_importsessionrow_importsession". The conflict occurred in database "DatabaseName", table "dbo.importsession", column 'importsessionid'.
So I went and talked to the developers team and they told me that this ok and its how it should look like. Then I just inform them that it could have a huge performance impact on queries. So the question I went back with from Developer team is:
Can this be mitigated with indexes?
I would be very pleased if you can help me answer the Dev team