I'm using the concept of single table inheritance
because of OOP considerations of course.
for example, PostLike
and TopicLike
inherit from Like
class.
I see two problems with this methodology:
- instead of two tables (PostLike and TopicLike) I get "one big table" of likes.
- this table has an extra column called dtype which enables record identification (i.e. type of like). in the long term it could be a huge waste of disk space. isn't it?
I'm not a DB expert and because of that I wanted to get your insights about this database design and whether or not those two problems are crucial.