I'm a newbie to databases - well, large ones anyway.
I'm trying to design a database which stores 'bookmarks' for users in a hierchachical fashion. I've figured out how to do that for one person (adjacency list, in one table). So for multiple users, I have one table to store user details - and one talbe for each user (named user_<username>).
My question is, is that a dumb way of designing a database - having one table for each user.
Obviously, I could place all the tables into one, and have a 'username' field and to a 'WHERE username=...' but that would be horribly inefficent wouldn't it? I'm expecting possibly thousands of users...
I'd rather have it as one table though, since if I add a field at the moment I'd have to change ALL the tables.
Any help would be greatly appreciated.
Cheers,
James.
I'm trying to design a database which stores 'bookmarks' for users in a hierchachical fashion. I've figured out how to do that for one person (adjacency list, in one table). So for multiple users, I have one table to store user details - and one talbe for each user (named user_<username>).
My question is, is that a dumb way of designing a database - having one table for each user.
Obviously, I could place all the tables into one, and have a 'username' field and to a 'WHERE username=...' but that would be horribly inefficent wouldn't it? I'm expecting possibly thousands of users...
I'd rather have it as one table though, since if I add a field at the moment I'd have to change ALL the tables.
Any help would be greatly appreciated.
Cheers,
James.