Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Customer Insight primary key datatype

Posted on by 7

Which datatype is recommended to use for Customer table primary key and how it affects on refresh performance?

  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Customer Insight primary key datatype

    Hi James, 

    The primary key is an attribute unique to the table.

    For an attribute to be a valid primary key, it shouldn't include duplicate values, missing values, or null values. String, integer, and GUID data type attributes are supported as primary keys.

    https://learn.microsoft.com/en-us/dynamics365/customer-insights/data-unification-map-tables#select-primary-key-and-semantic-type-for-attributes 

  • Suggested answer
    Bill Ryan Profile Picture
    Bill Ryan 803 on at
    RE: Customer Insight primary key datatype

    There's not quite the same number of datatypes you're probably used to in a RDBMS. I believe everything is ultimately ingested into SPARK / parquet files so most things will ultimately end up as Strings.  Guids for instance do.  Unless it's changed recently you can't use Integers so overall, Strings are the most common type.  Regarding performance, I don't think there's a whole lot of difference, the m3 process takes a while to process and I don't think you'll notice a whole lot of difference one way or other in general.

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,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,297 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans