D
D
David2019-02-08 15:27:15
Software design
David, 2019-02-08 15:27:15

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

3 answer(s)
J
JhaoDa, 2019-02-08
@foxit007

"Communication" (Foreign keys) in the database ≠ communication in the code, hence the question is meaningless.

M
morricone85, 2019-02-08
@morricone85

at the base level

V
Vitsliputsli, 2019-02-08
@Vitsliputsli

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 question

Ask a Question

731 491 924 answers to any question