Should Design Databases Use Foreign Keys?

If it is a web application with a large number of visits, the use of foreign keys should be avoided, and the relationship should be maintained by the outer application. The reason is that foreign keys will slow down the data access performance, which will increase the computational burden of the database server. , this part of the computing burden should be handed over to the application server, because the application server has good elastic scalability (load balancing can be done if necessary).

 

Reference link:

Do you use foreign keys when designing your database? - Know almost

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326160876&siteId=291194637