Posts: 3,176
Name: Thierry
Location: I'm the uber Spaminator !
|
Well, the world of db performance tuning is a lot based on reducing the joins you need between tables.
Big sites, often have a "flat" architectures, which make that every informations are stored in 1 row. You might have heard of such tables as "materialized views".
For smaller system though, I'd still recommend to go the normalized way.
And as you said, having 1 table for the images, and another one for the tags, with a 1 to N foreign key from the tags to the images looks like the way to go.
__________________
Only a biker knows why a dog sticks his head out the window.
|