Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Foreign Key constraints Synapse Azure

Am currently creating a datawarehouse in Azure Synapse, however Synapse does not allow for the creation of foreign keys. This is vital for referential integrity between the fact and dimension table. Does anyone have any suggestions as to what the alternatives are in synapse to enforce a PK FK relationship?

like image 666
Nayyar Avatar asked Oct 15 '22 03:10

Nayyar


1 Answers

I searched about this topic and I found that the focus of Synapse is performance and not integrity reinforcement. We can create primary keys and structure the star schema with fact, dimensions and code join tables between them.

It was confused me too until I make this tutorial and read this carefully.

Load Contoso retail data to Synapse SQL

like image 177
Rafael Lima Avatar answered Oct 27 '22 11:10

Rafael Lima