Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Missing index

Posted on by 1,867

Hello

Why is sql return a missing index when it exits?

InventTransIdx is a system index.

2818.png

4454.png

  • Martin Dráb Profile Picture
    Martin Dráb 229,389 Most Valuable Professional on at
    RE: Missing index

    I assume you're talking about the advisor suggesting a new index to improve performance of a particular query.

    The difference is that the standard index includes Partition and DataAreaId fields, while the suggested index doesn't.

    I don't know your query, but maybe it was a cross-company query, or the advisor decided that having an index with InventTransId only (which has much better selectivity than Partition and DataAreaId) is worth the effort. It also depends on what statistics are available to the advisor.

    In either case, you shouldn't simply create all indexes suggested by the advisor. It's a mere suggestion and the decision is up to you. A common example is when the query is rare and the cost of maintaining the index would outweigh the benefits.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Missing index

    It's not the same index. Look at the fields in the standard index. They always start with PartitionId and DataAreaId.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,942 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,389 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans