Answer the question
In order to leave comments, you need to log in
What is more correct and faster: duplicate identical columns in several related tables or use JOINs?
Essence of the question:
There are several types of services, each of them contains fields such as activation date, end date, etc., and at the same time has specific options that will be selected.
What is more correct and faster in this case?
Answer the question
In order to leave comments, you need to log in
With JOIN - formally more correct for any RDBMS. Performance is usually good enough.
But in some RARE cases it can cause performance issues.
Option with one table (with duplicates) - in such RARE cases it helps to solve the performance problem. But jambs are possible - due to the lack of synchronization of duplicate information.
But, as a rule, the problem with performance lies in another plane.
Duplicate, in practice, has to be for a different reason - NOT AT ALL because of performance.
For example, an online store:
Prices - may change.
But in the table with the goods already ordered, everything should go (duplicate) as before, that is, the price that was at the time of placing the order by the buyer. And not at all a link to a table with current prices.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question