I have a table of entities. For example purposes, lets call them
I'd ideally like to place all entities in a single
Vehicles table because a lot of related tables (
VehicleHistory, etc) are going to apply to any entity, not just one of them.
But some of the entities have a few individual properties that aren't shared with the other entity types. Right now, there is only 1 extra property for one entity, and 2 for another. I expect there might be a few more that get identified later on, but not many overall.
How do I know when it's better to create a child table for each entity type to store these individual properties, as opposed to just adding an extra column in the parent
Vehicles table? Is there any questions I can ask myself to help determine this answer?
I am looking to optimize for query performance primarily, followed by ease of maintenance.