Skip to main content

Notifications

Customer Service forum

data export to azure - adding indexes

Posted on by 365

I use the data export function in Dynamics 365 to export selected entities to an Azure SQL database. I however would like to add my own indexes to the tables in this database to improve query speed. 

I fear however that this might break the export as I have had issues in the past.

Is it possible to add new indexes to tables in this exported database that the export process will then carry on using? i.e. if I add an index to the contacts table i Azure, will new contacts added to it the next day now be using that new index?

Thanks

James

Categories:
  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: data export to azure - adding indexes

    You should avoid creating a Unique index, as that could cause failures in there are duplicates, but all other types of index are fine.

    When you create an index, all existing records (with non-null values in the indexed field(s)) are indexed, and any future updates are necessarily indexed as the record is created/updated

  • Abby Kong Profile Picture
    Abby Kong 6 on at
    RE: data export to azure - adding indexes

    Hi James,

    Adding index didn't break the data export for us. I think it's safe to add non-clustered indexes,  I haven't tried clustered index.

    Another suggestion is to explore auto-tuning of Azure DB:  With auto-tuning, indexes are created/dropped automatically based on the query you run. Over time, we experience significant improvement on those frequently used queries in query speed against Azure DB from data export service. 

    This is great if you are not SQL Server expert. However, it does take a bit of time with auto-tuning to have proper indexes created. 

    AutoTuning.png

    Regards,

    Abby

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: data export to azure - adding indexes

    Hi partner,

    According to this article, you should create a SQL premium database to use indexes.

    community252.png

    You could also refer to this similar post.

    https://community.dynamics.com/365/financeandoperations/f/765/t/295832

    In addition, I recommend that you could move your post to Finance and Operations Forum for more professional answers.

    Hope it helps.

    Best Regards,

    Leo

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 Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

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... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans