I am currently working on the redesign of a mysql bdd. This database is actually a huge table of 200 fields, several million lines, almost no index... In short, disastrous performances and huge ram consumption!
I first managed to reduce the number of fields by setting up 1:n relationships.
I have a question on a specific point: A number of fields on this database are optional and rarely filled in. (sometimes almost never) What is the best thing to do in this case?
- leave the field in the table even if it is very often of null value
- set up a n:n relationship knowing that these relationships, if they exist, will only return one line
- ...or another solution I haven't thought of
Thank you in advance for your wise advice;) Dimitri