Denormalization to allow use UNQIUE index?
Post has many Comment. Post contain issue_id field and Comment contains comment_id field. The request to create a comment with (issue_id, comment_id) which already exists in the DB should be ignored. Is it worth to add a copy of post_id into Comment (in order to use UNIQUE index to prevent duplicates)? Or should I use transactions?
That is, is denormalization worth the possibility to easily create composite UNIQUE?
--
http://freesoft.portonvictor.org
Subject
Views
Written By
Posted
Denormalization to allow use UNQIUE index?
2153
November 11, 2016 09:34AM
945
November 11, 2016 11:49AM
1154
November 11, 2016 01:02PM
998
November 12, 2016 01:25PM
1177
November 12, 2016 02:14PM
973
November 12, 2016 05:38PM
875
November 12, 2016 06:30PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.