Share via

execution plan not show missing index so are there are remainig point to enhance ?

ahmed salah 3,216 Reputation points
2022-01-03T02:02:51.06+00:00

I work on sql server 2012
my execution plan as below

https://www.brentozar.com/pastetheplan/?id=HJbwOAkhF

it not show missing index

so please how to enhance query please ?

Developer technologies | Transact-SQL
Developer technologies | Transact-SQL

A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


2 answers

Sort by: Most helpful
  1. Tom Phillips 17,786 Reputation points
    2022-01-03T13:14:12.48+00:00

    I can see from the query plan, you are running the RTM version of SQL 2017. You need to update to a current patch level.

    https://support.microsoft.com/en-us/topic/kb4047329-sql-server-2017-build-versions-346e8fcd-c07c-5eeb-e10b-e3411ba8d8dd

    Do you really need "SELECT DISTINCT" in your sub queries? This is very costly in your query.

    Was this answer helpful?


  2. Seeya Xi-MSFT 16,756 Reputation points
    2022-01-03T07:34:54.177+00:00

    Hi @ahmed salah ,

    Welcome to Microsoft Q&A!
    Sorting is a resource intensive operation. You can try to create an index on the columns involved in order by.
    For other suggestions, please refer to your previous thread.

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.