Here are two ways I can optimise mapping of a text field with several other attributes to question and answer. First approach is, creating a map table with both question_id and answer_id in which either of them will be null, and while querying I will query using column. In the second approach is normal like we would do normalisation.
Second approach will add one more table but in first approach there will be empty values against question_id and answer_id. Questions-
- Is it a good practice to leave cells blank?
- Will it have any performance issue?
- Will it violate any normalisation rule?
- ...