Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
THEG72
Helper V
Helper V

What makes for a better index column?

Hi Support and Community,

 

What makes for a better unique key between fact and dimension tables as far as speed and compression go?

 

The UID or the ACCOUNT Number shown below in my chart of accounts?


The UID is a longer alphanumeric field and the account number is a fair bit smaller.. Both are text fields in the model.

 

Which column should i index?Which column should i index?

2 REPLIES 2
ibarrau
Super User
Super User

Hi. I don't think you will found a significant difference. The short one may go faster. The best performance is with int values, but again I don't think you will notice so much difference in this case.

 

Regards,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

@ibarrau  thanks for your reply. Yes my understanding is text characters are slower than number/integer values. The account number however cant be resovled as a number due to the hyphen so it's formatted as text column like the uid.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.