Answer the question
In order to leave comments, you need to log in
What is the best way to create relationships between tables?
What is the best way to create relationships between tables. At the database level or at the framework level (Laravel, Yii2, etc.).
And does it affect the speed of receiving data?
Answer the question
In order to leave comments, you need to log in
"Communication" (Foreign keys) in the database ≠ communication in the code, hence the question is meaningless.
It does not affect the speed of receiving data, tk. it is an integrity control tool. And it should be in the database, because. it is problematic to take it out of there, imagine how you will check for the uniqueness of the field of the added record in a table with millions of records.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question