mediumStudy question · answer published in Data Modelling interview questions, so no pointsdata-modellingrelationships
Comments on posts and photos
A comments table uses commentable_type ('post' or 'photo') and commentable_id to point at either table. What is the main weakness?
Discussion 0
Join free to post in the discussion.
Related questions
- Primary key for order linesData Engineer
- Modelling doctors and patientsData Engineer
- Several phones in one columnData Engineer
- Several unique columnsData Engineer
- Picking the natural keyData Engineer
- Reading crow's foot notationData Engineer
- The model with indexes and typesData Engineer
- Why denormalise a reporting tableData Engineer