I have a database setup with many tables. To Find a User’s Computer it would take joins across 6 different database tables.
My User table and Computer table are not directly connected.
Should I just connect the user and computer table with a foreignKey? Or do all of the Joins?
Or am I missing something else?
Unless performance is an issue, don’t denormalise your data. It’s a maintenance hazard. If you’re struggling with all the joins, why not make a view to simplify matters?